WebRequest.ImpersonationLevel Propriedade

Definição

Obtém ou define o nível de personificação para o pedido atual.

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

Valor de Propriedade

Um valor de TokenImpersonationLevel.

Observações

Atenção

WebRequest, HttpWebRequest, ServicePoint, e WebClient são obsoletos, e não deves usá-los para novos desenvolvimentos. Utilize HttpClient em substituição.

O nível de personificação determina como o servidor pode usar as credenciais do cliente.

Aplica-se a