LoadFromXml static method
Loads instance of DocumentSharingLocationCollection from XML.
The reader.
Implementation
static DocumentSharingLocationCollection LoadFromXml(EwsXmlReader reader) {
DocumentSharingLocationCollection instance =
new DocumentSharingLocationCollection();
do {
reader.Read();
if ((reader.NodeType == XmlNodeType.Element) &&
(reader.LocalName == XmlElementNames.DocumentSharingLocation)) {
DocumentSharingLocation location =
DocumentSharingLocation.LoadFromXml(reader);
instance.Entries.add(location);
}
} while (!reader.IsEndElementWithNamespace(
XmlNamespace.Autodiscover, XmlElementNames.DocumentSharingLocations));
return instance;
}