Table of Contents

Class ExchangeServiceBase

Namespace
Microsoft.Exchange.WebServices.Data
Assembly
Microsoft.Exchange.WebServices.dll

Represents an abstract binding to an Exchange Service.

public abstract class ExchangeServiceBase
Inheritance
ExchangeServiceBase
Derived
Inherited Members

Properties

AcceptGzipEncoding

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

public bool AcceptGzipEncoding { get; set; }

Property Value

bool

Remarks

This value will tell the server that the client is able to handle GZip compression encoding. The server will only send Gzip compressed content if it has been configured to do so.

ClientRequestId

Gets or sets the request id for the request.

public string ClientRequestId { get; set; }

Property Value

string

ConnectionGroupName

Gets or sets the name of the connection group for the request.

public string ConnectionGroupName { get; set; }

Property Value

string

CookieContainer

Gets or sets the cookie container.

public CookieContainer CookieContainer { get; set; }

Property Value

CookieContainer

The cookie container.

Credentials

Gets or sets the credentials used to authenticate with the Exchange Web Services. Setting the Credentials property automatically sets the UseDefaultCredentials to false.

public ExchangeCredentials Credentials { get; set; }

Property Value

ExchangeCredentials

HttpHeaders

Gets a collection of HTTP headers that will be sent with each request to EWS.

public IDictionary<string, string> HttpHeaders { get; }

Property Value

IDictionary<string, string>

HttpResponseHeaders

Gets a collection of HTTP headers from the last response.

public IDictionary<string, string> HttpResponseHeaders { get; }

Property Value

IDictionary<string, string>

KeepAlive

Gets or sets if the request to the internet resource should contain a Connection HTTP header with the value Keep-alive

public bool KeepAlive { get; set; }

Property Value

bool

PreAuthenticate

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

public bool PreAuthenticate { get; set; }

Property Value

bool

RequestedServerVersion

Gets the requested server version.

public ExchangeVersion RequestedServerVersion { get; }

Property Value

ExchangeVersion

The requested server version.

ReturnClientRequestId

Gets or sets a flag to indicate whether the client requires the server side to return the request id.

public bool ReturnClientRequestId { get; set; }

Property Value

bool

SendClientLatencies

Gets or sets a value indicating whether client latency info is push to server.

public bool SendClientLatencies { get; set; }

Property Value

bool

ServerInfo

Gets information associated with the server that processed the last request. Will be null if no requests have been processed.

public ExchangeServerInfo ServerInfo { get; }

Property Value

ExchangeServerInfo

Timeout

Gets or sets the timeout used when sending HTTP requests and when receiving HTTP responses, in milliseconds. Defaults to 100000.

public int Timeout { get; set; }

Property Value

int

TraceEnabled

Gets or sets a value indicating whether tracing is enabled.

public bool TraceEnabled { get; set; }

Property Value

bool

TraceFlags

Gets or sets the trace flags.

public TraceFlags TraceFlags { get; set; }

Property Value

TraceFlags

The trace flags.

TraceListener

Gets or sets the trace listener.

public ITraceListener TraceListener { get; set; }

Property Value

ITraceListener

The trace listener.

UseDefaultCredentials

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.

public bool UseDefaultCredentials { get; set; }

Property Value

bool

UserAgent

Gets or sets the user agent.

public string UserAgent { get; set; }

Property Value

string

The user agent.

WebProxy

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.

public IWebProxy WebProxy { get; set; }

Property Value

IWebProxy

Events

OnResponseHeadersCaptured

Occurs when the http response headers of a server call is captured.

public event ResponseHeadersCapturedHandler OnResponseHeadersCaptured

Event Type

ResponseHeadersCapturedHandler

OnSerializeCustomSoapHeaders

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

public event CustomXmlSerializationDelegate OnSerializeCustomSoapHeaders

Event Type

CustomXmlSerializationDelegate