CreateComplexProperty method

  1. @override
GroupMember CreateComplexProperty(
  1. String xmlElementName
)
override
Writes the update to XML. The writer. The ews object. Property definition. Writes the deletion update to XML. The writer. The ews object. Creates a GroupMember object from an XML element name. The XML element name from which to create the e-mail address.

Implementation

//        bool ICustomUpdateSerializer.WriteSetUpdateToXml(
//            EwsServiceXmlWriter writer,
//            ServiceObject ownerObject,
//            PropertyDefinition propertyDefinition)
//        {
//            if (this.collectionIsCleared)
//            {
//                if (this.AddedItems.Count == 0)
//                {
//                    // Delete the whole members collection
//                    this.WriteDeleteMembersCollectionToXml(writer);
//                }
//                else
//                {
//                    // The collection is cleared, so Set
//                    this.WriteSetOrAppendMembersToXml(writer, this.AddedItems, true);
//                }
//            }
//            else
//            {
//                // The collection is not cleared, i.e. dl.Members.Clear() is not called.
//                // Append AddedItems.
//                this.WriteSetOrAppendMembersToXml(writer, this.AddedItems, false);
//
//                // Since member replacement is not supported by server
//                // Delete old ModifiedItems, then recreate new instead.
//                this.WriteDeleteMembersToXml(writer, this.ModifiedItems);
//                this.WriteSetOrAppendMembersToXml(writer, this.ModifiedItems, false);
//
//                // Delete RemovedItems.
//                this.WriteDeleteMembersToXml(writer, this.RemovedItems);
//            }
//
//            return true;
//        }

/// <summary>
/// Writes the deletion update to XML.
/// </summary>
/// <param name="writer">The writer.</param>
/// <param name="ewsObject">The ews object.</param>
/// <returns>True if property generated serialization.</returns>
//        bool ICustomUpdateSerializer.WriteDeleteUpdateToXml(EwsServiceXmlWriter writer, ServiceObject ewsObject)
//        {
//            return false;
//        }

/// <summary>
/// Creates a GroupMember object from an XML element name.
/// </summary>
/// <param name="xmlElementName">The XML element name from which to create the e-mail address.</param>
/// <returns>An GroupMember object.</returns>
@override
GroupMember CreateComplexProperty(String xmlElementName) {
  return new GroupMember();
}