SignInResult 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
SignInResult(ClaimsPrincipal) |
使用預設驗證配置,初始化 的新實例 SignInResult 。 |
SignInResult(ClaimsPrincipal, AuthenticationProperties) |
使用預設驗證配置和 |
SignInResult(String, ClaimsPrincipal) |
使用指定的驗證配置,初始化 的新實例 SignInResult 。 |
SignInResult(String, ClaimsPrincipal, AuthenticationProperties) |
使用指定的驗證配置和 |
SignInResult(String, ClaimsPrincipal, AuthenticationProperties) |
使用指定的驗證配置和 |
SignInResult(ClaimsPrincipal)
使用預設驗證配置,初始化 的新實例 SignInResult 。
public:
SignInResult(System::Security::Claims::ClaimsPrincipal ^ principal);
public SignInResult (System.Security.Claims.ClaimsPrincipal principal);
new Microsoft.AspNetCore.Mvc.SignInResult : System.Security.Claims.ClaimsPrincipal -> Microsoft.AspNetCore.Mvc.SignInResult
Public Sub New (principal As ClaimsPrincipal)
參數
- principal
- ClaimsPrincipal
包含使用者宣告的宣告主體。
適用於
SignInResult(ClaimsPrincipal, AuthenticationProperties)
使用預設驗證配置和 properties
,初始化 的新實例 SignInResult 。
public:
SignInResult(System::Security::Claims::ClaimsPrincipal ^ principal, Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
public SignInResult (System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
public SignInResult (System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties? properties);
new Microsoft.AspNetCore.Mvc.SignInResult : System.Security.Claims.ClaimsPrincipal * Microsoft.AspNetCore.Authentication.AuthenticationProperties -> Microsoft.AspNetCore.Mvc.SignInResult
Public Sub New (principal As ClaimsPrincipal, properties As AuthenticationProperties)
參數
- principal
- ClaimsPrincipal
包含使用者宣告的宣告主體。
- properties
- AuthenticationProperties
AuthenticationProperties 用來執行登入作業。
適用於
SignInResult(String, ClaimsPrincipal)
使用指定的驗證配置,初始化 的新實例 SignInResult 。
public:
SignInResult(System::String ^ authenticationScheme, System::Security::Claims::ClaimsPrincipal ^ principal);
public SignInResult (string authenticationScheme, System.Security.Claims.ClaimsPrincipal principal);
public SignInResult (string? authenticationScheme, System.Security.Claims.ClaimsPrincipal principal);
new Microsoft.AspNetCore.Mvc.SignInResult : string * System.Security.Claims.ClaimsPrincipal -> Microsoft.AspNetCore.Mvc.SignInResult
Public Sub New (authenticationScheme As String, principal As ClaimsPrincipal)
參數
- authenticationScheme
- String
登入使用者時要使用的驗證配置。
- principal
- ClaimsPrincipal
包含使用者宣告的宣告主體。
適用於
SignInResult(String, ClaimsPrincipal, AuthenticationProperties)
使用指定的驗證配置和 properties
,初始化 的新實例 SignInResult 。
public:
SignInResult(System::String ^ authenticationScheme, System::Security::Claims::ClaimsPrincipal ^ principal, Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
public SignInResult (string authenticationScheme, System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
public SignInResult (string? authenticationScheme, System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties? properties);
new Microsoft.AspNetCore.Mvc.SignInResult : string * System.Security.Claims.ClaimsPrincipal * Microsoft.AspNetCore.Authentication.AuthenticationProperties -> Microsoft.AspNetCore.Mvc.SignInResult
Public Sub New (authenticationScheme As String, principal As ClaimsPrincipal, properties As AuthenticationProperties)
參數
- authenticationScheme
- String
登入使用者時要使用的驗證配置。
- principal
- ClaimsPrincipal
包含使用者宣告的宣告主體。
- properties
- AuthenticationProperties
AuthenticationProperties 用來執行登入作業。
適用於
SignInResult(String, ClaimsPrincipal, AuthenticationProperties)
使用指定的驗證配置和 properties
,初始化 的新實例 SignInResult 。
public:
SignInResult(System::String ^ authenticationScheme, System::Security::Claims::ClaimsPrincipal ^ principal, Microsoft::AspNetCore::Http::Authentication::AuthenticationProperties ^ properties);
public SignInResult (string authenticationScheme, System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties properties);
new Microsoft.AspNetCore.Mvc.SignInResult : string * System.Security.Claims.ClaimsPrincipal * Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties -> Microsoft.AspNetCore.Mvc.SignInResult
Public Sub New (authenticationScheme As String, principal As ClaimsPrincipal, properties As AuthenticationProperties)
參數
- authenticationScheme
- String
登入使用者時要使用的驗證配置。
- principal
- ClaimsPrincipal
包含使用者宣告的宣告主體。
- properties
- AuthenticationProperties
AuthenticationProperties 用來執行登入作業。