LoadDomainSettingErrorsFromXml method

void LoadDomainSettingErrorsFromXml(
  1. EwsXmlReader reader
)
Loads the domain setting errors. The reader.

Implementation

/* private */
void LoadDomainSettingErrorsFromXml(EwsXmlReader reader) {
  if (!reader.IsEmptyElement) {
    do {
      reader.Read();

      if ((reader.NodeType == XmlNodeType.Element) &&
          (reader.LocalName == XmlElementNames.DomainSettingError)) {
        DomainSettingError error = new DomainSettingError();
        error.LoadFromXml(reader);
        _domainSettingErrors!.add(error);
      }
    } while (!reader.IsEndElementWithNamespace(
        XmlNamespace.Autodiscover, XmlElementNames.DomainSettingErrors));
  }
}