Validate method
Validates this instance.
Implementation
@override
void Validate() {
super.Validate();
this.Attachments.Validate();
// Flag parameter is only valid for Exchange2013 or higher
//
OutParam<Flag> flagOutParam = new OutParam<Flag>();
if (this.TryGetPropertyGeneric<Flag>(ItemSchema.Flag, flagOutParam) &&
flagOutParam.param != null) {
if (this.Service.RequestedServerVersion.index <
ExchangeVersion.Exchange2013.index) {
throw new ServiceVersionException("""string.Format(
Strings.ParameterIncompatibleWithRequestVersion,
"Flag",
ExchangeVersion.Exchange2013)""");
}
flagOutParam.param!.Validate();
}
}