public final class MapiTask extends MapiMessageItemBase
Represents the Outlook Task object.
attachments, namedPropertyMappingStorage, propertyStream, recipients, subStorages
Constructor and Description |
---|
MapiTask()
Initializes a new instance of the
MapiTask class. |
MapiTask(String subject,
String body,
Date startDate,
Date dueDate)
Initializes a new instance of the
MapiTask class. |
Modifier and Type | Method and Description |
---|---|
static MapiTask |
fromVTodo(InputStream stream)
Creates an instance of MapiTask from the specified stream.
|
static MapiTask |
fromVTodo(String filePath)
Creates an instance of MapiTask from the specified .ics file.
|
int |
getAcceptanceState()
Gets or sets the acceptance state of the task.
|
int |
getActualEffort()
Gets or sets the number of minutes that
the user actually spent working on a task.
|
MapiAttachmentCollection |
getAttachments()
Gets the attachments collection.
|
Date |
getDateCompleted()
Gets or sets the date when
the user completed work on the task.
|
Date |
getDueDate()
Gets or sets the date by which the user expects work
on the task to be complete.
|
int |
getEstimatedEffort()
Gets or sets the number of minutes
that the user expects to work on a task.
|
int |
getFlags()
Gets the indication flags of the Task object.
|
int |
getHistory()
Gets or sets the type of change
that was last made to the Task object.
|
Date |
getLastUpdate()
Gets or sets the date and time of the most
recent change made to the Task object.
|
int |
getMode()
Gets or sets the assignment status of the Task object.
|
int |
getPercentComplete()
Gets or sets the progress the user has made on a task.
|
MapiCalendarRecurrencePattern |
getRecurrence()
Gets or sets the recurrence properties.
|
String |
getReminderFileParameter()
Specifies the full path of the sound that a client SHOULD play when the reminder becomes overdue.
|
boolean |
getReminderSet()
Gets or sets a value indicating whether a reminder is set on the object
|
Date |
getReminderTime()
Gets or sets the initial signal time for a reminder
|
Date |
getStartDate()
Gets or sets the date on which the user
expects work on the task to begin.
|
int |
getState()
Gets or sets the current assignment
state of the Task object.
|
int |
getStatus()
Gets or sets the status of the user's progress on the task.
|
MapiTaskUsers |
getUsers()
Gets or sets information about task users.
|
void |
save(OutputStream stream,
int saveFormat)
Saves this
MapiTask to the given stream using specified format. |
void |
save(String filePath,
int saveFormat)
Saves this
MapiTask into file using specified format. |
void |
setAcceptanceState(int value)
Gets or sets the acceptance state of the task.
|
void |
setActualEffort(int value)
Gets or sets the number of minutes that
the user actually spent working on a task.
|
void |
setDateCompleted(Date value)
Gets or sets the date when
the user completed work on the task.
|
void |
setDueDate(Date value)
Gets or sets the date by which the user expects work
on the task to be complete.
|
void |
setEstimatedEffort(int value)
Gets or sets the number of minutes
that the user expects to work on a task.
|
void |
setHistory(int value)
Gets or sets the type of change
that was last made to the Task object.
|
void |
setLastUpdate(Date value)
Gets or sets the date and time of the most
recent change made to the Task object.
|
void |
setMode(int value)
Gets or sets the assignment status of the Task object.
|
void |
setPercentComplete(int value)
Gets or sets the progress the user has made on a task.
|
void |
setRecurrence(MapiCalendarRecurrencePattern value)
Gets or sets the recurrence properties.
|
void |
setReminderFileParameter(String value)
Specifies the full path of the sound that a client SHOULD play when the reminder becomes overdue.
|
void |
setReminderSet(boolean value)
Gets or sets a value indicating whether a reminder is set on the object
|
void |
setReminderTime(Date value)
Gets or sets the initial signal time for a reminder
|
void |
setStartDate(Date value)
Gets or sets the date on which the user
expects work on the task to begin.
|
void |
setState(int value)
Gets or sets the current assignment
state of the Task object.
|
void |
setStatus(int value)
Gets or sets the status of the user's progress on the task.
|
void |
setUsers(MapiTaskUsers value)
Gets or sets information about task users.
|
checkIsDisposed, dispose, getBilling, getBody, getBodyHtml, getBodyRtf, getBodyType, getCategories, getCompanies, getMessageClass, getMileage, getNamedProperties, getNamedPropertyMapping, getPropertyStream, getRecipients, getSensitivity, getSubject, getSubjectPrefix, getSubStorages, initNamedPropertyMappingStorage, removeProperty, setBilling, setBody, setBodyContent, setBodyRtf, setCategories, setCompanies, setMessageClass, setMessageFlags, setMileage, setNamedPropertyMapping, setProperty, setRecipients, setSensitivity, setsIMapiMessageItemMembers, setSubject, updateStorage, updateStorage
createMapiNode, getCodePage, getMyProperties, getProperties, getPropertyBoolean, getPropertyBytes, getPropertyDateTime, getPropertyInt32, getPropertyLong, getPropertyShort, getPropertyString, getPropertyString, isStoreUnicodeOk, setProperty, setProperty, setProperty, setProperty, setProperty, setPropertySet, tryGetPropertyData, tryGetPropertyDateTime, tryGetPropertyInt32, tryGetPropertyLong, tryGetPropertyString, tryGetPropertyString, tryGetPropertyString, tryGetPropertyString
public int getPercentComplete()
Gets or sets the progress the user has made on a task.
public void setPercentComplete(int value)
Gets or sets the progress the user has made on a task.
value
- a int.public int getActualEffort()
Gets or sets the number of minutes that the user actually spent working on a task.
public void setActualEffort(int value)
Gets or sets the number of minutes that the user actually spent working on a task.
value
- a int.public int getEstimatedEffort()
Gets or sets the number of minutes that the user expects to work on a task.
public void setEstimatedEffort(int value)
Gets or sets the number of minutes that the user expects to work on a task.
value
- a int.public Date getDueDate()
Gets or sets the date by which the user expects work on the task to be complete.
Date
object.public void setDueDate(Date value)
Gets or sets the date by which the user expects work on the task to be complete.
value
- a Date
object.public Date getStartDate()
Gets or sets the date on which the user expects work on the task to begin.
Date
object.com.aspose.ms.System.ArgumentException
- trows when start date is greater than date completed.public void setStartDate(Date value)
Gets or sets the date on which the user expects work on the task to begin.
value
- a Date
object.com.aspose.ms.System.ArgumentException
- trows when start date is greater than date completed.public Date getDateCompleted()
Gets or sets the date when the user completed work on the task.
Date
object.com.aspose.ms.System.ArgumentException
- throws when start date is less than date completed.public void setDateCompleted(Date value)
Gets or sets the date when the user completed work on the task.
value
- a Date
object.com.aspose.ms.System.ArgumentException
- trows when start date is less than date completed.public Date getLastUpdate()
Gets or sets the date and time of the most recent change made to the Task object.
Date
object.public void setLastUpdate(Date value)
Gets or sets the date and time of the most recent change made to the Task object.
value
- a Date
object.public MapiCalendarRecurrencePattern getRecurrence()
Gets or sets the recurrence properties.
MapiCalendarRecurrencePattern
object.public void setRecurrence(MapiCalendarRecurrencePattern value)
Gets or sets the recurrence properties.
value
- a MapiCalendarRecurrencePattern
object.public int getHistory()
Gets or sets the type of change that was last made to the Task object.
public void setHistory(int value)
Gets or sets the type of change that was last made to the Task object.
value
- a int.public MapiTaskUsers getUsers()
Gets or sets information about task users.
MapiTaskUsers
object.public void setUsers(MapiTaskUsers value)
Gets or sets information about task users.
value
- a MapiTaskUsers
object.public int getStatus()
Gets or sets the status of the user's progress on the task.
public void setStatus(int value)
Gets or sets the status of the user's progress on the task.
value
- a int.public int getMode()
Gets or sets the assignment status of the Task object.
public void setMode(int value)
Gets or sets the assignment status of the Task object.
value
- a int.public int getState()
Gets or sets the current assignment state of the Task object.
public void setState(int value)
Gets or sets the current assignment state of the Task object.
value
- a int.public int getAcceptanceState()
Gets or sets the acceptance state of the task.
public void setAcceptanceState(int value)
Gets or sets the acceptance state of the task.
value
- a int.public int getFlags()
Gets the indication flags of the Task object.
public Date getReminderTime()
Gets or sets the initial signal time for a reminder
Date
object.public void setReminderTime(Date value)
Gets or sets the initial signal time for a reminder
value
- a Date
object.public boolean getReminderSet()
Gets or sets a value indicating whether a reminder is set on the object
public void setReminderSet(boolean value)
Gets or sets a value indicating whether a reminder is set on the object
value
- a boolean.public String getReminderFileParameter()
Specifies the full path of the sound that a client SHOULD play when the reminder becomes overdue.
String
object.public void setReminderFileParameter(String value)
Specifies the full path of the sound that a client SHOULD play when the reminder becomes overdue.
value
- a String
object.public MapiAttachmentCollection getAttachments()
Gets the attachments collection.
getAttachments
in class MapiMessageItemBase
MapiAttachmentCollection
object.public void save(OutputStream stream, int saveFormat)
Saves this MapiTask
to the given stream using specified format.
stream
- a OutputStream
object.saveFormat
- a int.public void save(String filePath, int saveFormat)
Saves this MapiTask
into file using specified format.
filePath
- a String
object.saveFormat
- a int.public static MapiTask fromVTodo(String filePath)
Creates an instance of MapiTask from the specified .ics file.
filePath
- The path to the file to be loaded.public static MapiTask fromVTodo(InputStream stream)
Creates an instance of MapiTask from the specified stream.
stream
- The stream to be loaded.Copyright (c) 2008-2016 Aspose Pty Ltd. All Rights Reserved.