ValidateMethodVersion static method

void ValidateMethodVersion(
  1. ExchangeService service,
  2. ExchangeVersion minimumServerVersion,
  3. String methodName
)
Validates method version against the request version. The Exchange service. The minimum server version that supports the method. Name of the method.

Implementation

static void ValidateMethodVersion(ExchangeService service,
    ExchangeVersion minimumServerVersion, String methodName) {
  if (service.RequestedServerVersion.index < minimumServerVersion.index) {
    throw new ServiceVersionException("""string.Format(
                  Strings.MethodIncompatibleWithRequestVersion,
                  $methodName,
                  $minimumServerVersion)""");
  }
}