ExchangeServiceBase.withExchangeServiceAndExchangeVersion constructor

ExchangeServiceBase.withExchangeServiceAndExchangeVersion(
  1. ExchangeServiceBase service,
  2. ExchangeVersion requestedServerVersion
)
Initializes a new instance of the The requested server version. The time zone to which the service is scoped. Initializes a new instance of the The other service. The requested server version.

Implementation

//        ExchangeServiceBase(ExchangeVersion requestedServerVersion, TimeZoneInfo timeZone)
//            : this(timeZone)
//        {
//            this.requestedServerVersion = requestedServerVersion;
//        }

/// <summary>
/// Initializes a new instance of the <see cref="ExchangeServiceBase"/> class.
/// </summary>
/// <param name="service">The other service.</param>
/// <param name="requestedServerVersion">The requested server version.</param>
ExchangeServiceBase.withExchangeServiceAndExchangeVersion(
    ExchangeServiceBase service, ExchangeVersion requestedServerVersion)
//: this(requestedServerVersion, TimeZoneInfo.Local)
{
  this._requestedServerVersion = requestedServerVersion;
  this._useDefaultCredentials = service._useDefaultCredentials;
  this._credentials = service._credentials;
  this._traceEnabled = service._traceEnabled;
  this._traceListener = service._traceListener;
  this._traceFlags = service._traceFlags;
  this._timeout = service._timeout;
  this._preAuthenticate = service._preAuthenticate;
  this._userAgent = service._userAgent;
  this._acceptGzipEncoding = service._acceptGzipEncoding;
  this._keepAlive = service._keepAlive;
  this._connectionGroupName = service._connectionGroupName;
  this._timeZone = service._timeZone;
  this._httpHeaders = service._httpHeaders;
  this._ewsHttpWebRequestFactory = service._ewsHttpWebRequestFactory;
  this._webProxy = service._webProxy;
}