GetUserSettingsRequest constructor

GetUserSettingsRequest(
  1. AutodiscoverService service,
  2. Uri? url, [
  3. bool expectPartnerToken = false
])
Initializes a new instance of the Autodiscover service associated with this request. URL of Autodiscover service. Initializes a new instance of the Autodiscover service associated with this request. URL of Autodiscover service.

Implementation

//        GetUserSettingsRequest(AutodiscoverService service, Uri url)
//            : this(service, url, false)
//        {
//        }

/// <summary>
/// Initializes a new instance of the <see cref="GetUserSettingsRequest"/> class.
/// </summary>
/// <param name="service">Autodiscover service associated with this request.</param>
/// <param name="url">URL of Autodiscover service.</param>
/// <param name="expectPartnerToken"></param>
GetUserSettingsRequest(AutodiscoverService service, Uri? url,
    [bool expectPartnerToken = false])
    : this.expectPartnerToken = expectPartnerToken,
      super(service, url) {
  // make an explicit https check.
  if (expectPartnerToken && url!.scheme.toLowerCase() != "https") {
    throw new ServiceValidationException("Strings.HttpsIsRequired");
  }
}