Validate method

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

Implementation

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

  OutParam<Object> fileAsMappingOutParam = new OutParam();
  if (this
      .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, this.Service.RequestedServerVersion);
  }
}