HttpContextBase.User 屬性

定義

在衍生類別中覆寫時,取得或設定目前 HTTP 要求的安全性資訊。When overridden in a derived class, gets or sets security information for the current HTTP request.

public:
 virtual property System::Security::Principal::IPrincipal ^ User { System::Security::Principal::IPrincipal ^ get(); void set(System::Security::Principal::IPrincipal ^ value); };
public virtual System.Security.Principal.IPrincipal User { get; set; }
member this.User : System.Security.Principal.IPrincipal with get, set
Public Overridable Property User As IPrincipal

屬性值

IPrincipal

包含目前 HTTP 要求之安全性資訊的物件。An object that contains security information for the current HTTP request.

例外狀況

永遠。Always.

適用於