WriteToXml method

void WriteToXml(
  1. EwsServiceXmlWriter writer
)
Defines an implicit conversion between a String representing an SMTP address and AttendeeInfo. The SMTP address to convert to AttendeeInfo. Writes to XML. The writer.

Implementation

// static implicit operator AttendeeInfo(String smtpAddress)
//        {
//            return new AttendeeInfo(smtpAddress);
//        }

/// <summary>
/// Writes to XML.
/// </summary>
/// <param name="writer">The writer.</param>
void WriteToXml(EwsServiceXmlWriter writer) {
  writer.WriteStartElement(XmlNamespace.Types, XmlElementNames.MailboxData);

  writer.WriteStartElement(XmlNamespace.Types, XmlElementNames.Email);
  writer.WriteElementValueWithNamespace(
      XmlNamespace.Types, XmlElementNames.Address, this.SmtpAddress);
  writer.WriteEndElement(); // Email

  writer.WriteElementValueWithNamespace(
      XmlNamespace.Types, XmlElementNames.AttendeeType, this._attendeeType);

  writer.WriteElementValueWithNamespace(XmlNamespace.Types,
      XmlElementNames.ExcludeConflicts, this._excludeConflicts);

  writer.WriteEndElement(); // MailboxData
}