LoadDomainSettingErrorsFromXml method

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

Implementation

/* private */
Future<void> LoadDomainSettingErrorsFromXml(EwsXmlReader reader) async {
  if (!reader.IsEmptyElement) {
    do {
      await reader.Read();

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