共用方式為


HttpContext.User 屬性

定義

取得或設定這個要求的使用者。

public:
 abstract property System::Security::Claims::ClaimsPrincipal ^ User { System::Security::Claims::ClaimsPrincipal ^ get(); void set(System::Security::Claims::ClaimsPrincipal ^ value); };
public abstract System.Security.Claims.ClaimsPrincipal User { get; set; }
member this.User : System.Security.Claims.ClaimsPrincipal with get, set
Public MustOverride Property User As ClaimsPrincipal

屬性值

適用於