Constructor and Description |
---|
Task(ExchangeService service)
Initializes an unsaved local instance of Task.To bind to an existing
task, use Task.Bind() instead.
|
Task(ItemAttachment parentAttachment)
Initializes a new instance of the class.
|
Modifier and Type | Method and Description |
---|---|
static Task |
bind(ExchangeService service,
ItemId id)
Binds to an existing task and loads its first class property.
|
static Task |
bind(ExchangeService service,
ItemId id,
PropertySet propertySet)
Binds to an existing task and loads the specified set of property.
|
void |
deleteCurrentOccurrence(DeleteMode deleteMode)
Deletes the current occurrence of a recurring task.
|
Integer |
getActualWork()
Gets the actual amount of time that is spent on the task.
|
Date |
getAssignedTime()
Gets the date and time the task was assigned.
|
String |
getBillingInformation()
Gets the billing information of the task.
|
Integer |
getChangeCount()
Gets the number of times the task has changed since it was created.
|
StringList |
getCompanies()
Gets a list of companies associated with the task.
|
Date |
getCompleteDate()
Gets the date and time on which the task was completed.
|
StringList |
getContacts()
Gets a list of contacts associated with the task.
|
protected AffectedTaskOccurrence |
getDefaultAffectedTaskOccurrences()
Gets the default setting for how to treat affected task occurrences on
Delete.
|
TaskDelegationState |
getDelegationState()
Gets the current delegation state of the task.
|
String |
getDelegator()
Gets the name of the delegator of this task.
|
Date |
getDueDate()
Gets a list of contacts associated with the task.
|
Boolean |
getIsComplete()
Gets a value indicating whether the task is complete.
|
Boolean |
getIsRecurring()
Gets a value indicating whether the task is recurring.
|
Boolean |
getIsTeamTask()
Gets a value indicating whether the task is a team task.
|
boolean |
getIsTimeZoneHeaderRequired(boolean isUpdateOperation)
Gets a value indicating whether a time zone SOAP header should be
emitted in a CreateItem or UpdateItem request so this item can be
property saved or updated.
|
String |
getMileage()
Gets the mileage of the task.
|
ExchangeVersion |
getMinimumRequiredServerVersion()
Gets the minimum required server version.
|
TaskMode |
getMode()
Gets a value indicating the mode of the task.
|
String |
getOwner()
Gets the name of the owner of the task.
|
Double |
getPercentComplete()
Gets the completion percentage of the task.
|
Recurrence |
getRecurrence()
Gets the recurrence pattern for this task.
|
ServiceObjectSchema |
getSchema()
Internal method to return the schema associated with this type of object.
|
Date |
getStartDate()
Gets the date and time on which the task starts.
|
TaskStatus |
getStatus()
Gets the status of the task.
|
String |
getStatusDescription()
Gets a string representing the status of the task, localized according to
the PreferredCulture property of the ExchangeService object the task is
bound to.
|
Integer |
getTotalWork()
Gets the total amount of work spent on the task.
|
void |
setActualWork(Integer value)
Sets the checks if is read.
|
void |
setBillingInformation(String value)
Sets the billing information.
|
void |
setCompanies(StringList value)
Sets the companies.
|
void |
setCompleteDate(Date value)
Sets the complete date.
|
void |
setContacts(StringList value)
Sets the contacts.
|
void |
setDueDate(Date value)
Sets the due date.
|
void |
setMileage(String value)
Sets the mileage.
|
void |
setPercentComplete(Double value)
Sets the completion percentage of the task.
|
void |
setPercentComplete(String value)
Deprecated.
use Double parameter instead
|
void |
setRecurrence(Recurrence value)
Sets the recurrence.
|
void |
setStartDate(Date value)
Sets the start date.
|
void |
setStatus(TaskStatus value)
Sets the status.
|
void |
setTotalWork(Integer value)
Sets the total work.
|
Task |
updateTask(ConflictResolutionMode conflictResolutionMode)
Applies the local changes that have been made to this task.
|
copy, copy, delete, getAllowedResponseActions, getAttachments, getBody, getCategories, getConversationId, getCulture, getDateTimeCreated, getDateTimeReceived, getDateTimeSent, getDefaultSendCancellationsMode, getDefaultSendInvitationsMode, getDefaultSendInvitationsOrCancellationsMode, getDisplayCc, getDisplayTo, getEffectiveRights, getExtendedProperties, getHasAttachments, getId, getIdPropertyDefinition, getImportance, getInReplyTo, getInternetMessageHeaders, getIsAssociated, getIsDraft, getIsFromMe, getIsNew, getIsReminderSet, getIsResend, getIsSubmitted, getIsUnmodified, getItemClass, getLastModifiedName, getLastModifiedTime, getMimeContent, getParentAttachment, getParentFolderId, getReminderDueBy, getReminderMinutesBeforeStart, getRootItemId, getSensitivity, getSize, getSubject, getUniqueBody, getWebClientEditFormQueryString, getWebClientReadFormQueryString, hasUnprocessedAttachmentChanges, internalCreate, internalDelete, internalLoad, internalUpdate, isAttachment, move, move, removeExtendedProperty, save, save, save, setBody, setCategories, setCulture, setExtendedProperty, setImportance, setInReplyTo, setIsReminderSet, setItemClass, setMimeContent, setReminderDueBy, setReminderMinutesBeforeStart, setSensitivity, setSubject, throwIfThisIsAttachment, update, validate
addServiceObjectChangedEvent, changed, clearChangeLog, clearServiceObjectChangedEvent, getChangeXmlElementName, getDeleteFieldXmlElementName, getIsCustomDateTimeScopingRequired, getLoadedPropertyDefinitions, getObjectFromPropertyDefinition, getPropertyBag, getService, getSetFieldXmlElementName, getXmlElementName, getXmlElementNameOverride, isDirty, isNew, load, load, loadFromXml, loadFromXml, removeServiceObjectChangedEvent, schema, setService, throwIfThisIsNew, throwIfThisIsNotNew, tryGetExtendedProperty, tryGetProperty, tryGetProperty, writeToXml, writeToXmlForUpdate
public Task(ExchangeService service) throws Exception
service
- the serviceException
- the exceptionpublic Task(ItemAttachment parentAttachment) throws Exception
parentAttachment
- the parent attachmentException
- the exceptionpublic static Task bind(ExchangeService service, ItemId id, PropertySet propertySet) throws Exception
service
- the serviceid
- the idpropertySet
- the property setException
- the exceptionpublic static Task bind(ExchangeService service, ItemId id) throws Exception
service
- the serviceid
- the idException
- the exceptionpublic ServiceObjectSchema getSchema()
public ExchangeVersion getMinimumRequiredServerVersion()
getMinimumRequiredServerVersion
in class Item
public boolean getIsTimeZoneHeaderRequired(boolean isUpdateOperation)
getIsTimeZoneHeaderRequired
in class Item
isUpdateOperation
- the is update operationpublic void deleteCurrentOccurrence(DeleteMode deleteMode) throws ServiceLocalException, Exception
deleteMode
- the delete modeServiceLocalException
- the service local exceptionException
- the exceptionpublic Task updateTask(ConflictResolutionMode conflictResolutionMode) throws ServiceResponseException, Exception
conflictResolutionMode
- the conflict resolution modeServiceResponseException
- the service response exceptionException
- the exceptionpublic Integer getActualWork() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setActualWork(Integer value) throws Exception
value
- the new checks if is readException
- the exceptionpublic Date getAssignedTime() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic String getBillingInformation() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setBillingInformation(String value) throws Exception
value
- the new billing informationException
- the exceptionpublic Integer getChangeCount() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic StringList getCompanies() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setCompanies(StringList value) throws Exception
value
- the new companiesException
- the exceptionpublic Date getCompleteDate() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setCompleteDate(Date value) throws Exception
value
- the new complete dateException
- the exceptionpublic StringList getContacts() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setContacts(StringList value) throws Exception
value
- the new contactsException
- the exceptionpublic TaskDelegationState getDelegationState() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic String getDelegator() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic Date getDueDate() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setDueDate(Date value) throws Exception
value
- the new due dateException
- the exceptionpublic TaskMode getMode() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic Boolean getIsComplete() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic Boolean getIsRecurring() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic Boolean getIsTeamTask() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic String getMileage() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setMileage(String value) throws Exception
value
- the new mileageException
- the exceptionpublic String getOwner() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic Double getPercentComplete() throws ServiceLocalException
ServiceLocalException
- the service local exception@Deprecated public void setPercentComplete(String value) throws Exception
value
- the new percent completeException
- the exceptionpublic void setPercentComplete(Double value) throws Exception
value
- the new percent completeException
- the exceptionpublic Recurrence getRecurrence() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setRecurrence(Recurrence value) throws Exception
value
- the new recurrenceException
- the exceptionpublic Date getStartDate() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setStartDate(Date value) throws Exception
value
- the new start dateException
- the exceptionpublic TaskStatus getStatus() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setStatus(TaskStatus value) throws Exception
value
- the new statusException
- the exceptionpublic String getStatusDescription() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic Integer getTotalWork() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setTotalWork(Integer value) throws Exception
value
- the new total workException
- the exceptionprotected AffectedTaskOccurrence getDefaultAffectedTaskOccurrences()
getDefaultAffectedTaskOccurrences
in class Item
Copyright © 2012–2015 Microsoft. All rights reserved.