ReadAttributesFromXml method

  1. @override
void ReadAttributesFromXml(
  1. EwsServiceXmlReader reader
)
override
Defines an implicit conversation between a String and MessageBody. The String to convert to MessageBody, assumed to be HTML. Defines an implicit conversion of MessageBody into a string. The MessageBody to convert to a string. Reads attributes from XML. The reader.

Implementation

// static implicit operator MessageBody(String textBody)
//        {
//            return new MessageBody(BodyType.HTML, textBody);
//        }

/// <summary>
/// Defines an implicit conversion of MessageBody into a string.
/// </summary>
/// <param name="messageBody">The MessageBody to convert to a string.</param>
/// <returns>A String containing the text of the MessageBody.</returns>
// static implicit operator string(MessageBody messageBody)
//        {
//            EwsUtilities.ValidateParam(messageBody, "messageBody");
//
//            return messageBody.Text;
//        }

/// <summary>
/// Reads attributes from XML.
/// </summary>
/// <param name="reader">The reader.</param>
@override
void ReadAttributesFromXml(EwsServiceXmlReader reader) {
  this._bodyType = reader.ReadAttributeValue<enumerations.BodyType>(
      XmlAttributeNames.BodyType);
}