Constructor and Description |
---|
PostItem(ExchangeService service)
Initializes an unsaved local instance of PostItem.To bind to an existing
post item, use PostItem.Bind() instead.
|
PostItem(ItemAttachment parentAttachment)
Initializes a new instance of the class.
|
Modifier and Type | Method and Description |
---|---|
static PostItem |
bind(ExchangeService service,
ItemId id)
Binds to an existing post item and loads its first class property.
|
static PostItem |
bind(ExchangeService service,
ItemId id,
PropertySet propertySet)
Binds to an existing post item and loads the specified set of property.
|
ResponseMessage |
createForward()
Creates a forward response to the post item.
|
PostReply |
createPostReply()
Creates a post reply to this post item.
|
ResponseMessage |
createReply(boolean replyAll)
Creates a e-mail reply response to the post item.
|
void |
forward(MessageBody bodyPrefix,
EmailAddress... toRecipients)
Forwards the post item.
|
void |
forward(MessageBody bodyPrefix,
Iterable<EmailAddress> toRecipients)
Forwards the post item.
|
byte[] |
getConversationIndex()
Gets the conversation index of the post item.
|
String |
getConversationTopic()
Gets the conversation topic of the post item.
|
EmailAddress |
getFrom()
Gets the "on behalf" poster of the post item.
|
String |
getInternetMessageId()
Gets the Internet message Id of the post item.
|
Boolean |
getIsRead()
Gets a value indicating whether the post item is read.
|
ExchangeVersion |
getMinimumRequiredServerVersion()
Internal method to return the schema associated with this type of object.
|
Date |
getPostedTime()
Gets the the date and time when the post item was posted.
|
String |
getReferences()
Gets the references of the post item.
|
ServiceObjectSchema |
getSchema()
Internal method to return the schema associated with this type of object.
|
EmailAddress |
getSender()
Gets the sender (poster) of the post item.
|
void |
postReply(MessageBody bodyPrefix)
Posts a reply to this post item.
|
void |
reply(MessageBody bodyPrefix,
boolean replyAll)
Replies to the post item.
|
void |
setFrom(EmailAddress value)
Sets the from.
|
void |
setIsRead(Boolean value)
Sets the checks if is read.
|
void |
setIsRead(String value)
Sets the checks if is read.
|
void |
setSender(EmailAddress value)
Sets the sender.
|
copy, copy, delete, getAllowedResponseActions, getAttachments, getBody, getCategories, getConversationId, getCulture, getDateTimeCreated, getDateTimeReceived, getDateTimeSent, getDefaultAffectedTaskOccurrences, getDefaultSendCancellationsMode, getDefaultSendInvitationsMode, getDefaultSendInvitationsOrCancellationsMode, getDisplayCc, getDisplayTo, getEffectiveRights, getExtendedProperties, getHasAttachments, getId, getIdPropertyDefinition, getImportance, getInReplyTo, getInternetMessageHeaders, getIsAssociated, getIsDraft, getIsFromMe, getIsNew, getIsReminderSet, getIsResend, getIsSubmitted, getIsTimeZoneHeaderRequired, 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 PostItem(ExchangeService service) throws Exception
service
- the serviceException
- the exceptionpublic PostItem(ItemAttachment parentAttachment) throws Exception
parentAttachment
- the parent attachmentException
- the exceptionpublic static PostItem bind(ExchangeService service, ItemId id, PropertySet propertySet) throws Exception
service
- the serviceid
- the idpropertySet
- the property setException
- the exceptionpublic static PostItem bind(ExchangeService service, ItemId id) throws Exception
service
- the serviceid
- the idException
- the exceptionpublic ServiceObjectSchema getSchema()
public ExchangeVersion getMinimumRequiredServerVersion()
getMinimumRequiredServerVersion
in class Item
public PostReply createPostReply() throws Exception
Exception
- the exceptionpublic void postReply(MessageBody bodyPrefix) throws Exception
bodyPrefix
- the body prefixException
- the exceptionpublic ResponseMessage createReply(boolean replyAll) throws Exception
replyAll
- the reply allException
- the exceptionpublic void reply(MessageBody bodyPrefix, boolean replyAll) throws Exception
bodyPrefix
- the body prefixreplyAll
- the reply allException
- the exceptionpublic ResponseMessage createForward() throws Exception
Exception
- the exceptionpublic void forward(MessageBody bodyPrefix, EmailAddress... toRecipients) throws Exception
bodyPrefix
- the body prefixtoRecipients
- the to recipientsException
- the exceptionpublic void forward(MessageBody bodyPrefix, Iterable<EmailAddress> toRecipients) throws Exception
bodyPrefix
- the body prefixtoRecipients
- the to recipientsException
- the exceptionpublic byte[] getConversationIndex() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic String getConversationTopic() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic EmailAddress getFrom() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setFrom(EmailAddress value) throws Exception
value
- the new fromException
- the exceptionpublic String getInternetMessageId() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic Boolean getIsRead() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setIsRead(Boolean value) throws Exception
value
- the new checks if is readException
- the exceptionpublic Date getPostedTime() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic String getReferences() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setIsRead(String value) throws Exception
value
- the new checks if is readException
- the exceptionpublic EmailAddress getSender() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setSender(EmailAddress value) throws Exception
value
- the new senderException
- the exceptionCopyright © 2012–2015 Microsoft. All rights reserved.