Validate method

void Validate()
Initializes a new instance of the The other service. Validates this instance.

Implementation

//        ExchangeServiceBase(ExchangeServiceBase service)
//            : this(service, service.RequestedServerVersion)
//        {
//        }

/// <summary>
/// Validates this instance.
/// </summary>
void Validate() {
  // Done in ExchangeService.Validate in the C# API; the properties live here.
  if (PrivilegedUserId != null && ImpersonatedUserId != null) {
    throw ServiceLocalException(
      "Can't set both impersonated user and privileged user in the ExchangeService object.",
    );
  }
}