TryReadElementFromXml method
Tries to read element from XML.
The reader.
Implementation
@override
bool TryReadElementFromXml(EwsServiceXmlReader reader) {
bool result = super.TryReadElementFromXml(reader);
if (!result) {
if (reader.LocalName == XmlElementNames.FieldURIOrConstant) {
reader.Read();
reader.EnsureCurrentNodeIsStartElement();
if (reader.IsStartElementWithNamespace(
XmlNamespace.Types, XmlElementNames.Constant)) {
this._value = reader.ReadAttributeValue(XmlAttributeNames.Value);
result = true;
} else {
OutParam<PropertyDefinitionBase> outParam =
new OutParam<PropertyDefinitionBase>();
outParam.param = this._otherPropertyDefinition;
result = PropertyDefinitionBase.TryLoadFromXml(reader, outParam);
}
}
}
return result;
}