ValidateClassVersion static method

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

Implementation

static void ValidateClassVersion(ExchangeService service,
    ExchangeVersion minimumServerVersion, String className) {
  if (service.RequestedServerVersion.index < minimumServerVersion.index) {
    throw new ServiceVersionException("""string.Format(
                  Strings.ClassIncompatibleWithRequestVersion,
                  className,
                  minimumServerVersion)""");
  }
}