InternalLoadFromXml method
Internals the load from XML.
The reader.
The property bag.
Implementation
Future<void> InternalLoadFromXml(
EwsServiceXmlReader reader,
PropertyBag propertyBag,
) async {
OutParam<Object> complexPropertyOutParam = OutParam<Object>();
bool justCreated = _GetPropertyInstance(
propertyBag,
complexPropertyOutParam,
);
if (!justCreated &&
HasFlag(
PropertyDefinitionFlags.UpdateCollectionItems,
propertyBag.Owner!.Service.RequestedServerVersion,
)) {
await (complexPropertyOutParam.param as ComplexProperty).UpdateFromXml(
reader,
reader.LocalName,
);
} else {
await (complexPropertyOutParam.param as ComplexProperty).LoadFromXml(
reader,
reader.LocalName,
);
}
propertyBag[this] = complexPropertyOutParam.param;
}