AutodiscoverService AutodiscoverService 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
AutodiscoverServiceAutodiscoverServiceAutodiscoverService

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() AutodiscoverService() AutodiscoverService()

Initializes a new instance of the AutodiscoverService class.

AutodiscoverService(ExchangeVersion) AutodiscoverService(ExchangeVersion) AutodiscoverService(ExchangeVersion)

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

AutodiscoverService(String) AutodiscoverService(String) AutodiscoverService(String)

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

AutodiscoverService(String, ExchangeVersion) AutodiscoverService(String, ExchangeVersion) 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) AutodiscoverService(Uri) AutodiscoverService(Uri)

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

AutodiscoverService(Uri, ExchangeVersion) AutodiscoverService(Uri, ExchangeVersion) 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 AcceptGzipEncoding AcceptGzipEncoding

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

(Inherited from ExchangeServiceBase)
ClientRequestId ClientRequestId 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 ConnectionGroupName 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 CookieContainer CookieContainer

Gets or sets the cookie container.

(Inherited from ExchangeServiceBase)
Credentials Credentials Credentials

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

(Inherited from ExchangeServiceBase)
Domain Domain Domain

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

EnableScpLookup EnableScpLookup EnableScpLookup

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

GetScpUrlsForDomainCallback GetScpUrlsForDomainCallback 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 HttpHeaders HttpHeaders

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

(Inherited from ExchangeServiceBase)
HttpResponseHeaders HttpResponseHeaders 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 IsExternal 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 KeepAlive 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 PreAuthenticate PreAuthenticate

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

(Inherited from ExchangeServiceBase)
RedirectionUrlValidationCallback RedirectionUrlValidationCallback RedirectionUrlValidationCallback

Gets or sets the redirection URL validation callback.

RequestedServerVersion RequestedServerVersion RequestedServerVersion

Gets the requested server version.

(Inherited from ExchangeServiceBase)
ReturnClientRequestId ReturnClientRequestId 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 SendClientLatencies 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 ServerInfo ServerInfo

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

(Inherited from ExchangeServiceBase)
Timeout Timeout Timeout

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

(Inherited from ExchangeServiceBase)
TraceEnabled TraceEnabled TraceEnabled

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

(Inherited from ExchangeServiceBase)
TraceFlags TraceFlags TraceFlags

Gets or sets the trace flags.

(Inherited from ExchangeServiceBase)
TraceListener TraceListener TraceListener

Gets or sets the trace listener.

(Inherited from ExchangeServiceBase)
Url Url Url

Gets or sets the URL of the Autodiscover service.

UseDefaultCredentials UseDefaultCredentials 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 UserAgent UserAgent

Gets or sets the user agent.

(Inherited from ExchangeServiceBase)
WebProxy WebProxy WebProxy

Gets or sets the Web proxy server that handles requests.

(Inherited from ExchangeServiceBase)

Methods

GetDomainSettings(IEnumerable<String>, Nullable<ExchangeVersion>, DomainSettingName[]) GetDomainSettings(IEnumerable<String>, Nullable<ExchangeVersion>, DomainSettingName[]) 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[]) GetDomainSettings(String, Nullable<ExchangeVersion>, DomainSettingName[]) GetDomainSettings(String, Nullable<ExchangeVersion>, DomainSettingName[])

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

GetUserSettings(String, UserSettingName[]) GetUserSettings(String, UserSettingName[]) GetUserSettings(String, UserSettingName[])

Retrieves the specified user settings for an SMTP address.

GetUsersSettings(IEnumerable<String>, UserSettingName[]) GetUsersSettings(IEnumerable<String>, UserSettingName[]) GetUsersSettings(IEnumerable<String>, UserSettingName[])

Retrieves the specified settings for a set of users.

TryGetPartnerAccess(String, ExchangeCredentials, Uri) TryGetPartnerAccess(String, ExchangeCredentials, Uri) TryGetPartnerAccess(String, ExchangeCredentials, Uri)

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

Events

OnResponseHeadersCaptured OnResponseHeadersCaptured 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 OnSerializeCustomSoapHeaders 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