LoadFromXmlWithNamespace method
Future<void>
LoadFromXmlWithNamespace(
- EwsServiceXmlReader reader,
- XmlNamespace xmlNamespace,
- String? localElementName
override
Implementation
@override
Future<void> LoadFromXmlWithNamespace(EwsServiceXmlReader reader,
XmlNamespace xmlNamespace, String? localElementName) async {
reader.EnsureCurrentNodeIsStartElementWithNamespace(
xmlNamespace, localElementName);
if (!reader.IsEmptyElement) {
do {
await reader.Read();
if (reader.IsStartElement()) {
TComplexProperty? complexProperty =
this.CreateComplexProperty(reader.LocalName);
if (complexProperty != null) {
await complexProperty.LoadFromXml(reader, reader.LocalName);
this.InternalAdd(complexProperty, true);
} else {
await reader.SkipCurrentElement();
}
}
} while (
!reader.IsEndElementWithNamespace(xmlNamespace, localElementName));
}
}