WebRequest.ImpersonationLevel Egenskap

Definition

Hämtar eller anger personifieringsnivån för den aktuella begäran.

public:
 property System::Security::Principal::TokenImpersonationLevel ImpersonationLevel { System::Security::Principal::TokenImpersonationLevel get(); void set(System::Security::Principal::TokenImpersonationLevel value); };
public System.Security.Principal.TokenImpersonationLevel ImpersonationLevel { get; set; }
member this.ImpersonationLevel : System.Security.Principal.TokenImpersonationLevel with get, set
Public Property ImpersonationLevel As TokenImpersonationLevel

Egenskapsvärde

Ett TokenImpersonationLevel värde.

Kommentarer

Caution

WebRequest, HttpWebRequest, ServicePoint, och WebClient är föråldrade och du bör inte använda dem för ny utveckling. Använd HttpClient i stället.

Personifieringsnivån avgör hur servern kan använda klientens autentiseringsuppgifter.

Gäller för