ThrowIfNotSupportedByRequestedServerVersion method

void ThrowIfNotSupportedByRequestedServerVersion()
Throw exception if request is not supported in requested server version.

Implementation

void ThrowIfNotSupportedByRequestedServerVersion() {
  if (this.Service.RequestedServerVersion.index <
      this.GetMinimumRequiredServerVersion().index) {
    throw new ServiceVersionException("""string.Format(
                      Strings.RequestIncompatibleWithRequestVersion,
                      this.GetXmlElementName(),
                      this.GetMinimumRequiredServerVersion())""");
  }
}