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 用户的 。

适用于