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.

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

Syntax

'Declaration
<SerializableAttribute> _
<XmlTypeAttribute(Namespace:="http://schemas.microsoft.com/exchange/services/2006/types")> _
<DebuggerStepThroughAttribute> _
<DesignerCategoryAttribute("code")> _
<XmlRootAttribute("ExchangeImpersonation", Namespace:="http://schemas.microsoft.com/exchange/services/2006/types", IsNullable:=False)> _
<GeneratedCodeAttribute("wsdl", "2.0.50727.42")> _
Public Class ExchangeImpersonationType
    Inherits SoapHeader
[SerializableAttribute] 
[XmlTypeAttribute(Namespace="http://schemas.microsoft.com/exchange/services/2006/types")] 
[DebuggerStepThroughAttribute] 
[DesignerCategoryAttribute("code")] 
[XmlRootAttribute("ExchangeImpersonation", Namespace="http://schemas.microsoft.com/exchange/services/2006/types", IsNullable=false)] 
[GeneratedCodeAttribute("wsdl", "2.0.50727.42")] 
public class ExchangeImpersonationType : SoapHeader
[SerializableAttribute] 
[XmlTypeAttribute(Namespace=L"http://schemas.microsoft.com/exchange/services/2006/types")] 
[DebuggerStepThroughAttribute] 
[DesignerCategoryAttribute(L"code")] 
[XmlRootAttribute(L"ExchangeImpersonation", Namespace=L"http://schemas.microsoft.com/exchange/services/2006/types", IsNullable=false)] 
[GeneratedCodeAttribute(L"wsdl", L"2.0.50727.42")] 
public ref class ExchangeImpersonationType : public SoapHeader
/** @attribute SerializableAttribute() */ 
/** @attribute XmlTypeAttribute(Namespace="http://schemas.microsoft.com/exchange/services/2006/types") */ 
/** @attribute DebuggerStepThroughAttribute() */ 
/** @attribute DesignerCategoryAttribute("code") */ 
/** @attribute XmlRootAttribute("ExchangeImpersonation", Namespace="http://schemas.microsoft.com/exchange/services/2006/types", IsNullable=false) */ 
/** @attribute GeneratedCodeAttribute("wsdl", "2.0.50727.42") */ 
public class ExchangeImpersonationType extends SoapHeader
SerializableAttribute 
XmlTypeAttribute(Namespace="http://schemas.microsoft.com/exchange/services/2006/types") 
DebuggerStepThroughAttribute 
DesignerCategoryAttribute("code") 
XmlRootAttribute("ExchangeImpersonation", Namespace="http://schemas.microsoft.com/exchange/services/2006/types", IsNullable=false) 
GeneratedCodeAttribute("wsdl", "2.0.50727.42") 
public class ExchangeImpersonationType extends 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.

Inheritance Hierarchy

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

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.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,

Target Platforms

Windows 98, Windows 2000, Windows 2000 Server, Windows CE, Windows Longhorn, Windows 98 Second Edition, Pocket PC, Smart Phone, Windows Server 2003, Windows XP Professional with Service Pack 2 (SP2)