ExchangeImpersonationType Class

An instance of the ExchangeImpersonationType class is used as the SOAP header of a request. When this instance is present, the caller is impersonating the account that is contained within the ExchangeImpersonationType instance.

Inheritance Hierarchy

System.Object
  System.Web.Services.Protocols.SoapHeader
    ExchangeWebServices.ExchangeImpersonationType

Namespace:  ExchangeWebServices
Assembly:  EWS (in EWS.dll)

Syntax

'Declaration
<SerializableAttribute> _
Public Class ExchangeImpersonationType _
    Inherits SoapHeader
'Usage
Dim instance As ExchangeImpersonationType
[SerializableAttribute]
public class ExchangeImpersonationType : SoapHeader

Remarks

The calling account must have the ms-exch-impersonation right on the Client Access server and the ms-exch-MayImpersonate right on either the mailbox database that contains the mailbox to impersonate or the Active Directory User/Contact object.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.