AutodiscoverService Class

Definition

Represents a binding to the Exchange Autodiscover service.

public ref class AutodiscoverService sealed : Microsoft::Exchange::WebServices::Data::ExchangeServiceBase
public sealed class AutodiscoverService : Microsoft.Exchange.WebServices.Data.ExchangeServiceBase
Public NotInheritable Class AutodiscoverService
Inherits ExchangeServiceBase
Inheritance
AutodiscoverService

Remarks

In the Exchange Web Services (EWS) Managed API, the ExchangeService class contains the methods and properties that are used to set user credentials, identify EWS endpoints, send and receive SOAP messages, and configure connections to EWS. To perform an operation by using the EWS Managed API, you must first set up the ExchangeService class.

Constructors

AutodiscoverService()

Initializes a new instance of the AutodiscoverService class.

AutodiscoverService(ExchangeVersion)

Initializes a new instance of the AutodiscoverService class that has the server version specified by the requestedServerVersion parameter.

AutodiscoverService(String)

Initializes a new instance of the AutodiscoverService class that has the domain specified by the domain parameter.

AutodiscoverService(String, ExchangeVersion)

Initializes a new instance of the AutodiscoverService class that has the domain specified by the domain parameter and the server version specified by the requestedServerVersion parameter.

AutodiscoverService(Uri)

Initializes a new instance of the AutodiscoverService class that has the Autodiscover service URL specified by the url parameter.

AutodiscoverService(Uri, ExchangeVersion)

Initializes a new instance of the AutodiscoverService class that has the Autodiscover service URL specified by the url parameter and the server version specified by the requestedServerVersion parameter.

Properties

AcceptGzipEncoding

Gets or sets a value that indicates whether GZip compression encoding should be accepted.

(Inherited from ExchangeServiceBase)
ClientRequestId

Gets or sets the request ID. The ClientRequestId property is applicable for clients that target Exchange Online and versions of Exchange starting with Exchange Server 2013.

(Inherited from ExchangeServiceBase)
ConnectionGroupName

Gets or sets the name of the connection group for the request. The ConnectionGroupName property is applicable for clients that target Exchange Online and versions of Exchange starting with Exchange Server 2013.

(Inherited from ExchangeServiceBase)
CookieContainer

Gets or sets the cookie container.

(Inherited from ExchangeServiceBase)
Credentials

Gets or sets the credentials that are used to authenticate with Exchange Web Services (EWS).

(Inherited from ExchangeServiceBase)
Domain

Gets or sets the domain that the specified Autodiscover service is bound to.

EnableScpLookup

Gets or sets whether the AutodiscoverService instance should perform a Service Connection Point (SCP) lookup when determining the service URL.

GetScpUrlsForDomainCallback

Gets or sets the delegate used to resolve Autodiscover Service Connection Point (SCP) URLs for a specified domain.The GetScpUrlsForDomainCallback property is applicable to clients that target versions of Exchange starting with Exchange Server 2013, including Exchange Online.

HttpHeaders

Gets a list of HTTP headers associated with requests to Exchange Web Services (EWS).

(Inherited from ExchangeServiceBase)
HttpResponseHeaders

Gets a collection of HTTP headers from the last response. The HttpResponseHeaders property is applicable for clients that target Exchange Online and versions of Exchange starting with Exchange Server 2013.

(Inherited from ExchangeServiceBase)
IsExternal

Gets or sets a value that indicates whether the Autodiscover service that the URL points to is internal (inside the corporate network) or external (outside the corporate network).

KeepAlive

Gets or sets whether a request should contain a Keep-alive header. The KeepAlive property is applicable for clients that target Exchange Online and versions of Exchange starting with Exchange Server 2013.

(Inherited from ExchangeServiceBase)
PreAuthenticate

Gets or sets a value that indicates whether HTTP pre-authentication should be performed.

(Inherited from ExchangeServiceBase)
RedirectionUrlValidationCallback

Gets or sets the redirection URL validation callback.

RequestedServerVersion

Gets the requested server version.

(Inherited from ExchangeServiceBase)
ReturnClientRequestId

Gets or sets a flag indicating that a client requires responses to include the request ID. The ReturnClientRequestId property is applicable for clients that target Exchange Online and versions of Exchange starting with Exchange Server 2013.

(Inherited from ExchangeServiceBase)
SendClientLatencies

Gets or sets whether client latency information must be sent by the client. The SendClientLatencies property is applicable for clients that target Exchange Online and versions of Exchange starting with Exchange Server 2013.

(Inherited from ExchangeServiceBase)
ServerInfo

Gets information that is associated with the server that processed the most recent request.

(Inherited from ExchangeServiceBase)
Timeout

Gets or sets the timeout that is used when sending HTTP requests and when receiving HTTP responses, in milliseconds.

(Inherited from ExchangeServiceBase)
TraceEnabled

Gets or sets a value that indicates whether tracing is enabled.

(Inherited from ExchangeServiceBase)
TraceFlags

Gets or sets the trace flags.

(Inherited from ExchangeServiceBase)
TraceListener

Gets or sets the trace listener.

(Inherited from ExchangeServiceBase)
Url

Gets or sets the URL of the Autodiscover service.

UseDefaultCredentials

Gets or sets a value that indicates whether the credentials of the user who is currently logged on to Windows should be used to authenticate with Exchange Web Services (EWS).

(Inherited from ExchangeServiceBase)
UserAgent

Gets or sets the user agent.

(Inherited from ExchangeServiceBase)
WebProxy

Gets or sets the Web proxy server that handles requests.

(Inherited from ExchangeServiceBase)

Methods

GetDomainSettings(IEnumerable<String>, Nullable<ExchangeVersion>, DomainSettingName[])

Retrieves the specified settings for a set of domains at the specified URLs with the specified server version.

GetDomainSettings(String, Nullable<ExchangeVersion>, DomainSettingName[])

Retrieves the specified settings for a domain with the specified server version.

GetUserSettings(String, UserSettingName[])

Retrieves the specified user settings for an SMTP address.

GetUsersSettings(IEnumerable<String>, UserSettingName[])

Retrieves the specified settings for a set of users.

TryGetPartnerAccess(String, ExchangeCredentials, Uri)

Attempts to retrieve the partner access information for the specified tenant.

Events

OnResponseHeadersCaptured

Calls the ResponseHeadersCapturedHandler handler. The OnResponseHeadersCaptured event is applicable for clients that target Exchange Online and versions of Exchange starting with Exchange Server 2013.

(Inherited from ExchangeServiceBase)
OnSerializeCustomSoapHeaders

Represents the event that is called to enable applications to emit custom SOAP headers in requests that are sent to Microsoft Exchange Server.

(Inherited from ExchangeServiceBase)

Applies to