public final class UniqueBody extends ComplexProperty
Constructor and Description |
---|
UniqueBody()
Initializes a new instance.
|
Modifier and Type | Method and Description |
---|---|
BodyType |
getBodyType()
Gets the type of the unique body's text.
|
static String |
getStringFromUniqueBody(UniqueBody messageBody)
Defines an implicit conversion of UniqueBody into a string.
|
String |
getText()
Gets the text of the unique body.
|
void |
readAttributesFromXml(EwsServiceXmlReader reader)
Reads attribute from XML.
|
void |
readTextValueFromXml(EwsServiceXmlReader reader)
Reads attribute from XML.
|
String |
toString() |
void |
writeAttributesToXml(EwsServiceXmlWriter writer)
Writes attributes from XML.
|
void |
writeElementsToXml(EwsServiceXmlWriter writer)
Writes elements to XML.
|
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, internalValidate, loadFromXml, loadFromXml, removeChangeEvent, setNamespace, tryReadElementFromXml, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeToXml, writeToXml
public UniqueBody()
public static String getStringFromUniqueBody(UniqueBody messageBody) throws Exception
messageBody
- the message bodyException
- the exceptionpublic void readAttributesFromXml(EwsServiceXmlReader reader) throws Exception
readAttributesFromXml
in class ComplexProperty
reader
- the readerException
- the exceptionpublic void readTextValueFromXml(EwsServiceXmlReader reader) throws XMLStreamException, ServiceXmlDeserializationException
readTextValueFromXml
in class ComplexProperty
reader
- the readerXMLStreamException
- the xml stream exceptionServiceXmlDeserializationException
- the service xml deserialization exceptionpublic void writeAttributesToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException
writeAttributesToXml
in class ComplexProperty
writer
- the writerServiceXmlSerializationException
- the service xml serialization exceptionpublic void writeElementsToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException
writeElementsToXml
in class ComplexProperty
writer
- the writerServiceXmlSerializationException
- the service xml serialization exceptionpublic BodyType getBodyType()
Copyright © 2012–2015 Microsoft. All rights reserved.