WebRequest.ImpersonationLevel Property

Gets or sets the impersonation level for the current request.

Namespace: System.Net
Assembly: System (in system.dll)

public TokenImpersonationLevel ImpersonationLevel { get; set; }
/** @property */
public TokenImpersonationLevel get_ImpersonationLevel ()

/** @property */
public void set_ImpersonationLevel (TokenImpersonationLevel value)

public function get ImpersonationLevel () : TokenImpersonationLevel

public function set ImpersonationLevel (value : TokenImpersonationLevel)

Not applicable.

Property Value

A TokenImpersonationLevel value.

The impersonation level determines how the server can use the client's credentials.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0