共用方式為


AuthenticationState(ClaimsPrincipal) 建構函式

定義

建構 的 AuthenticationState 實例。

public:
 AuthenticationState(System::Security::Claims::ClaimsPrincipal ^ user);
public AuthenticationState (System.Security.Claims.ClaimsPrincipal user);
new Microsoft.AspNetCore.Components.Authorization.AuthenticationState : System.Security.Claims.ClaimsPrincipal -> Microsoft.AspNetCore.Components.Authorization.AuthenticationState
Public Sub New (user As ClaimsPrincipal)

參數

user
ClaimsPrincipal

ClaimsPrincipal 表示使用者。

適用於