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