public final class PostReply extends ServiceObject
Constructor and Description |
---|
PostReply(Item referenceItem)
Initializes a new instance of the class.
|
Modifier and Type | Method and Description |
---|---|
MessageBody |
getBody()
Gets the body of the post reply.
|
MessageBody |
getBodyPrefix()
Gets the body prefix that should be prepended to the original
post item's body.
|
ExchangeVersion |
getMinimumRequiredServerVersion()
Gets the minimum required server version.
|
ServiceObjectSchema |
getSchema()
Internal method to return the schema associated with this type of object.
|
String |
getSubject()
Gets the subject of the post reply.
|
protected PostItem |
internalCreate(FolderId parentFolderId,
MessageDisposition messageDisposition)
Create a PostItem response.
|
protected void |
internalDelete(DeleteMode deleteMode,
SendCancellationsMode sendCancellationsMode,
AffectedTaskOccurrence affectedTaskOccurrences)
Deletes the object.
|
protected void |
internalLoad(PropertySet propertySet)
Loads the specified set of property on the object.
|
PostItem |
save()
Saves the post reply in the same folder as the original post item.
|
PostItem |
save(FolderId destinationFolderId)
Saves the post reply in the same folder as the original post item.
|
PostItem |
save(WellKnownFolderName destinationFolderName)
Saves the post reply in a specified folder.
|
void |
setBody(MessageBody value)
Sets the body.
|
void |
setBodyPrefix(MessageBody value)
Sets the body prefix.
|
void |
setSubject(String value)
Sets the subject.
|
addServiceObjectChangedEvent, changed, clearChangeLog, clearServiceObjectChangedEvent, getChangeXmlElementName, getDeleteFieldXmlElementName, getExtendedProperties, getId, getIdPropertyDefinition, getIsCustomDateTimeScopingRequired, getIsTimeZoneHeaderRequired, getLoadedPropertyDefinitions, getObjectFromPropertyDefinition, getPropertyBag, getService, getSetFieldXmlElementName, getXmlElementName, getXmlElementNameOverride, isDirty, isNew, load, load, loadFromXml, loadFromXml, removeServiceObjectChangedEvent, schema, setService, throwIfThisIsNew, throwIfThisIsNotNew, tryGetExtendedProperty, tryGetProperty, tryGetProperty, validate, writeToXml, writeToXmlForUpdate
public ServiceObjectSchema getSchema()
getSchema
in class ServiceObject
public ExchangeVersion getMinimumRequiredServerVersion()
getMinimumRequiredServerVersion
in class ServiceObject
protected PostItem internalCreate(FolderId parentFolderId, MessageDisposition messageDisposition) throws Exception
parentFolderId
- the parent folder idmessageDisposition
- the message dispositionException
- the exceptionprotected void internalLoad(PropertySet propertySet) throws InvalidOperationException
internalLoad
in class ServiceObject
propertySet
- the property setInvalidOperationException
- the invalid operation exceptionprotected void internalDelete(DeleteMode deleteMode, SendCancellationsMode sendCancellationsMode, AffectedTaskOccurrence affectedTaskOccurrences) throws InvalidOperationException
internalDelete
in class ServiceObject
deleteMode
- the delete modesendCancellationsMode
- the send cancellations modeaffectedTaskOccurrences
- the affected task occurrencesInvalidOperationException
- the invalid operation exceptionpublic PostItem save() throws Exception
Exception
- the exceptionpublic PostItem save(FolderId destinationFolderId) throws Exception
destinationFolderId
- the destination folder idException
- the exceptionpublic PostItem save(WellKnownFolderName destinationFolderName) throws Exception
destinationFolderName
- the destination folder nameException
- the exceptionpublic String getSubject() throws Exception
Exception
- the exceptionpublic void setSubject(String value) throws Exception
value
- the new subjectException
- the exceptionpublic MessageBody getBody() throws Exception
Exception
- the exceptionpublic void setBody(MessageBody value) throws Exception
value
- the new bodyException
- the exceptionpublic MessageBody getBodyPrefix() throws Exception
Exception
- the exceptionpublic void setBodyPrefix(MessageBody value) throws Exception
value
- the new body prefixException
- the exceptionCopyright © 2012–2015 Microsoft. All rights reserved.