AuthenticationTicket 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AuthenticationTicket(ClaimsPrincipal, String)
初始化 AuthenticationTicket 類別的新執行個體
public:
AuthenticationTicket(System::Security::Claims::ClaimsPrincipal ^ principal, System::String ^ authenticationScheme);
public AuthenticationTicket (System.Security.Claims.ClaimsPrincipal principal, string authenticationScheme);
new Microsoft.AspNetCore.Authentication.AuthenticationTicket : System.Security.Claims.ClaimsPrincipal * string -> Microsoft.AspNetCore.Authentication.AuthenticationTicket
Public Sub New (principal As ClaimsPrincipal, authenticationScheme As String)
參數
- principal
- ClaimsPrincipal
, ClaimsPrincipal 表示已驗證的使用者。
- authenticationScheme
- String
負責此票證的驗證配置。
適用於
AuthenticationTicket(ClaimsPrincipal, AuthenticationProperties, String)
初始化 AuthenticationTicket 類別的新執行個體
public:
AuthenticationTicket(System::Security::Claims::ClaimsPrincipal ^ principal, Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties, System::String ^ authenticationScheme);
public AuthenticationTicket (System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, string authenticationScheme);
public AuthenticationTicket (System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties? properties, string authenticationScheme);
new Microsoft.AspNetCore.Authentication.AuthenticationTicket : System.Security.Claims.ClaimsPrincipal * Microsoft.AspNetCore.Authentication.AuthenticationProperties * string -> Microsoft.AspNetCore.Authentication.AuthenticationTicket
Public Sub New (principal As ClaimsPrincipal, properties As AuthenticationProperties, authenticationScheme As String)
參數
- principal
- ClaimsPrincipal
, ClaimsPrincipal 表示已驗證的使用者。
- properties
- AuthenticationProperties
使用者或執行時間可取用的其他屬性。
- authenticationScheme
- String
負責此票證的驗證配置。
適用於
AuthenticationTicket(ClaimsPrincipal, AuthenticationProperties, String)
初始化 AuthenticationTicket 類別的新執行個體
public:
AuthenticationTicket(System::Security::Claims::ClaimsPrincipal ^ principal, Microsoft::AspNetCore::Http::Authentication::AuthenticationProperties ^ properties, System::String ^ authenticationScheme);
public AuthenticationTicket (System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties properties, string authenticationScheme);
new Microsoft.AspNetCore.Authentication.AuthenticationTicket : System.Security.Claims.ClaimsPrincipal * Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties * string -> Microsoft.AspNetCore.Authentication.AuthenticationTicket
Public Sub New (principal As ClaimsPrincipal, properties As AuthenticationProperties, authenticationScheme As String)
參數
- principal
- ClaimsPrincipal
, ClaimsPrincipal 表示已驗證的使用者。
- properties
- AuthenticationProperties
使用者或執行時間可取用的其他屬性。
- authenticationScheme
- String
負責此票證的驗證中介軟體。