ValidateMethodVersion static method
void
ValidateMethodVersion(
- ExchangeService service,
- ExchangeVersion minimumServerVersion,
- String methodName
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)""");
}
}