Validate method

  1. @override
void Validate()
override
Validates this instance.

Implementation

@override
void Validate() {
  super.Validate();

  OutParam<Object> fileAsMappingOutParam = OutParam();
  if (TryGetProperty(ContactSchema.FileAsMapping, fileAsMappingOutParam)) {
    // FileAsMapping is extended by 5 new values in 2010 mode. Validate that they are used according the version.
    EwsUtilities.ValidateEnumVersionValue(
      fileAsMappingOutParam.param,
      Service.RequestedServerVersion,
    );
  }
}