public class Task extends Object implements com.aspose.ms.System.IDisposable
Represents the exchange task information.
Modifier and Type | Field and Description |
---|---|
protected AttachmentCollection |
attachmentsfield
A collection of file attached to the task.
|
protected MailAddressCollection |
attendeesfield
Task attendees
|
protected String |
bodyfield
A task body.
|
protected com.aspose.ms.System.DateTime |
dueDatefield
A date when the task is due.
|
protected int |
methodfield
The iTIP methods associated with an task.
|
protected MailAddress |
organizerfield
Task organizer
|
protected float |
percentCompletefield
A pecent of task completion.
|
protected int |
priorityfield
A task priority.
|
protected String |
relatedTofield
A related UID.
|
protected int |
sequeneIdfield
The sequence id.
|
protected com.aspose.ms.System.DateTime |
startDatefield
A start date of task.
|
protected String |
subjectfield
A task subject.
|
protected String |
uidfield
Unique identifier
|
Constructor and Description |
---|
Task() |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Performs tasks associated with freeing, releasing, or resetting unmanaged resources.
|
AttachmentCollection |
getAttachments()
Gets or sets a collection of file attached to the task.
|
MailAddressCollection |
getAttendees()
Gets or sets the attendees.
|
String |
getBody()
Gets or sets a task body.
|
Date |
getDueDate()
Gets or sets the date by which the user expects work on the task to be complete.
|
int |
getMethod()
Gets or sets iTIP methods associated with an task.
|
MailAddress |
getOrganizer()
Gets or sets the organizer.
|
float |
getPercentComplete()
Gets or sets a pecent of task completion.
|
int |
getPriority()
Gets or sets a task priority.
|
String |
getRelatedTo()
Gets or sets a related UID
|
int |
getSequenceId()
Gets or sets the sequence id.
|
Date |
getStartDate()
Gets or sets a start date of task.
|
String |
getSubject()
Gets or sets a task subject.
|
String |
getUniqueId()
Gets or sets unique identifier
|
AlternateView |
request()
Requests the object.
|
void |
save(OutputStream stream)
Saves current object to the given stream using MSG format.
|
void |
save(OutputStream stream,
int saveFormat)
Saves current object to the given stream using specified format.
|
void |
save(String filePath)
Saves current object into file using MSG format.
|
void |
save(String filePath,
int saveFormat)
Saves current object into file using specified format.
|
void |
setAttachments(AttachmentCollection value)
Gets or sets a collection of file attached to the task.
|
void |
setAttendees(MailAddressCollection value)
Gets or sets the attendees.
|
void |
setBody(String value)
Gets or sets a task body.
|
void |
setDueDate(Date value)
Gets or sets the date by which the user expects work on the task to be complete.
|
void |
setMethod(int value)
Gets or sets iTIP methods associated with an task.
|
void |
setOrganizer(MailAddress value)
Gets or sets the organizer.
|
void |
setPercentComplete(float value)
Gets or sets a pecent of task completion.
|
void |
setPriority(int value)
Gets or sets a task priority.
|
void |
setRelatedTo(String value)
Gets or sets a related UID
|
void |
setSequenceId(int value)
Gets or sets the sequence id.
|
void |
setStartDate(Date value)
Gets or sets a start date of task.
|
void |
setSubject(String value)
Gets or sets a task subject.
|
void |
setUniqueId(String value)
Gets or sets unique identifier
|
MapiTask |
toMapiTask()
Converts current object to
MapiTask object. |
protected String relatedTofield
A related UID.
protected String subjectfield
A task subject.
protected com.aspose.ms.System.DateTime startDatefield
A start date of task.
protected com.aspose.ms.System.DateTime dueDatefield
A date when the task is due.
protected int priorityfield
A task priority.
protected float percentCompletefield
A pecent of task completion.
protected String bodyfield
A task body.
protected String uidfield
Unique identifier
protected int sequeneIdfield
The sequence id.
protected MailAddressCollection attendeesfield
Task attendees
protected MailAddress organizerfield
Task organizer
protected int methodfield
The iTIP methods associated with an task.
protected AttachmentCollection attachmentsfield
A collection of file attached to the task.
public void setRelatedTo(String value)
Gets or sets a related UID
value
- a String
object.public void setSubject(String value)
Gets or sets a task subject.
value
- a String
object.public void setStartDate(Date value)
Gets or sets a start date of task.
value
- a Date
object.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 int getPriority()
Gets or sets a task priority.
public void setPriority(int value)
Gets or sets a task priority.
value
- a int.public float getPercentComplete()
Gets or sets a pecent of task completion.
public void setPercentComplete(float value)
Gets or sets a pecent of task completion.
value
- a float.public void setBody(String value)
Gets or sets a task body.
value
- a String
object.public void setUniqueId(String value)
Gets or sets unique identifier
value
- a String
object.public int getSequenceId()
Gets or sets the sequence id.
Value: The sequence id.public void setSequenceId(int value)
Gets or sets the sequence id.
Value: The sequence id.value
- a int.public MailAddressCollection getAttendees()
Gets or sets the attendees.
MailAddressCollection
object.public void setAttendees(MailAddressCollection value)
Gets or sets the attendees.
value
- a MailAddressCollection
object.public MailAddress getOrganizer()
Gets or sets the organizer.
MailAddress
object.public void setOrganizer(MailAddress value)
Gets or sets the organizer.
value
- a MailAddress
object.public int getMethod()
Gets or sets iTIP methods associated with an task.
public void setMethod(int value)
Gets or sets iTIP methods associated with an task.
value
- a int.public AttachmentCollection getAttachments()
Gets or sets a collection of file attached to the task.
AttachmentCollection
object.public void setAttachments(AttachmentCollection value)
Gets or sets a collection of file attached to the task.
value
- a AttachmentCollection
object.public AlternateView request()
Requests the object.
Aspose.Email.Mail.AlternateView
that represents the format to view an email message.public void dispose()
Performs tasks associated with freeing, releasing, or resetting unmanaged resources.
dispose
in interface com.aspose.ms.System.IDisposable
public MapiTask toMapiTask()
Converts current object to MapiTask
object.
MapiTask
object.public void save(OutputStream stream)
Saves current object to the given stream using MSG format.
stream
- A stream to save to.public void save(OutputStream stream, int saveFormat)
Saves current object to the given stream using specified format.
stream
- A stream to save to.saveFormat
- A save format.public void save(String filePath)
Saves current object into file using MSG format.
filePath
- A file name.public void save(String filePath, int saveFormat)
Saves current object into file using specified format.
filePath
- A file name.saveFormat
- A save format.Copyright (c) 2008-2015 Aspose Pty Ltd. All Rights Reserved.