Class AutodiscoverService

AutodiscoverService class

Represents a binding to the Exchange Autodiscover Service.

public sealed class AutodiscoverService : AutodiscoverServiceBase

Constructors

NameDescription
AutodiscoverService()Initializes a new instance of the AutodiscoverService class.
AutodiscoverService(ExchangeVersion)Initializes a new instance of the AutodiscoverService class.
AutodiscoverService(string)Initializes a new instance of the AutodiscoverService class.
AutodiscoverService(Uri)Initializes a new instance of the AutodiscoverService class.
AutodiscoverService(string, ExchangeVersion)Initializes a new instance of the AutodiscoverService class.
AutodiscoverService(Uri, ExchangeVersion)Initializes a new instance of the AutodiscoverService class.

Properties

NameDescription
AcceptGzipEncoding { get; set; }Gets or sets a value indicating whether GZip compression encoding should be accepted.
ClientRequestId { get; set; }Gets or sets the request id for the request.
ConnectionGroupName { get; set; }Gets or sets the name of the connection group for the request.
CookieContainer { get; set; }Gets or sets the cookie container.
Credentials { get; set; }Gets or sets the credentials used to authenticate with the Exchange Web Services. Setting the Credentials property automatically sets the UseDefaultCredentials to false.
Domain { get; set; }Gets or sets the domain this service is bound to. When this property is set, the domain name is used to automatically determine the Autodiscover service URL.
EnableScpLookup { get; set; }Gets or sets a value indicating whether the AutodiscoverService should perform SCP (ServiceConnectionPoint) record lookup when determining the Autodiscover service URL.
HttpHeaders { get; }Gets a collection of HTTP headers that will be sent with each request to EWS.
HttpResponseHeaders { get; }Gets a collection of HTTP headers from the last response.
IsExternal { get; }Gets a value indicating whether the Autodiscover service that URL points to is internal (inside the corporate network) or external (outside the corporate network).
KeepAlive { get; set; }Gets or sets if the request to the internet resource should contain a Connection HTTP header with the value Keep-alive
LogFileName { get; set; }Gets or sets log file name
PreAuthenticate { get; set; }Gets or sets a value that indicates whether HTTP pre-authentication should be performed.
RedirectionUrlValidationCallback { get; set; }Gets or sets the redirection URL validation callback.
RequestedServerVersion { get; }Gets the requested server version.
ReturnClientRequestId { get; set; }Gets or sets a flag to indicate whether the client requires the server side to return the request id.
SendClientLatencies { get; set; }Gets or sets a value indicating whether client latency info is push to server.
ServerInfo { get; }Gets information associated with the server that processed the last request. Will be null if no requests have been processed.
Timeout { get; set; }Gets or sets the timeout used when sending HTTP requests and when receiving HTTP responses, in milliseconds. Defaults to 100000.
Url { get; set; }Gets or sets the URL this service is bound to.
UseDateInLogFileName { get; set; }Gets or sets value which indicates if date has to be used in log file name.
UseDefaultCredentials { get; set; }Gets or sets a value indicating whether the credentials of the user currently logged into Windows should be used to authenticate with the Exchange Web Services. Setting UseDefaultCredentials to true automatically sets the Credentials property to null.
UserAgent { get; set; }Gets or sets the user agent.
WebProxy { get; set; }Gets or sets the web proxy that should be used when sending requests to EWS. Set this property to null to use the default web proxy.

Methods

NameDescription
GetUserSettings(string, params UserSettingName[])Retrieves the specified settings for single SMTP address.
GetUsersSettings(IEnumerable<string>, params UserSettingName[])Retrieves the specified settings for a set of users.

Events

NameDescription
event OnSerializeCustomSoapHeadersProvides an event that applications can implement to emit custom SOAP headers in requests that are sent to Exchange.

See Also