AuthenticationHttpContextExtensions.SignOutAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
SignOutAsync(HttpContext, String) |
登出指定配置的主體。 |
SignOutAsync(HttpContext) |
登出預設驗證配置的主體。 您可以使用 來設定 DefaultSignOutScheme 登出的預設配置。 |
SignOutAsync(HttpContext, AuthenticationProperties) |
登出預設驗證配置的主體。 您可以使用 來設定 DefaultSignOutScheme 登出的預設配置。 |
SignOutAsync(HttpContext, String, AuthenticationProperties) |
登出指定配置的主體。 |
SignOutAsync(HttpContext, String)
登出指定配置的主體。
public:
[System::Runtime::CompilerServices::Extension]
static System::Threading::Tasks::Task ^ SignOutAsync(Microsoft::AspNetCore::Http::HttpContext ^ context, System::String ^ scheme);
public static System.Threading.Tasks.Task SignOutAsync (this Microsoft.AspNetCore.Http.HttpContext context, string scheme);
public static System.Threading.Tasks.Task SignOutAsync (this Microsoft.AspNetCore.Http.HttpContext context, string? scheme);
static member SignOutAsync : Microsoft.AspNetCore.Http.HttpContext * string -> System.Threading.Tasks.Task
<Extension()>
Public Function SignOutAsync (context As HttpContext, scheme As String) As Task
參數
- context
- HttpContext
內容 HttpContext 。
- scheme
- String
驗證配置的名稱。
傳回
工作。
適用於
SignOutAsync(HttpContext)
登出預設驗證配置的主體。 您可以使用 來設定 DefaultSignOutScheme 登出的預設配置。
public:
[System::Runtime::CompilerServices::Extension]
static System::Threading::Tasks::Task ^ SignOutAsync(Microsoft::AspNetCore::Http::HttpContext ^ context);
public static System.Threading.Tasks.Task SignOutAsync (this Microsoft.AspNetCore.Http.HttpContext context);
static member SignOutAsync : Microsoft.AspNetCore.Http.HttpContext -> System.Threading.Tasks.Task
<Extension()>
Public Function SignOutAsync (context As HttpContext) As Task
參數
- context
- HttpContext
內容 HttpContext 。
傳回
工作。
適用於
SignOutAsync(HttpContext, AuthenticationProperties)
登出預設驗證配置的主體。 您可以使用 來設定 DefaultSignOutScheme 登出的預設配置。
public:
[System::Runtime::CompilerServices::Extension]
static System::Threading::Tasks::Task ^ SignOutAsync(Microsoft::AspNetCore::Http::HttpContext ^ context, Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
public static System.Threading.Tasks.Task SignOutAsync (this Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
public static System.Threading.Tasks.Task SignOutAsync (this Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authentication.AuthenticationProperties? properties);
static member SignOutAsync : Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task
<Extension()>
Public Function SignOutAsync (context As HttpContext, properties As AuthenticationProperties) As Task
參數
- context
- HttpContext
內容 HttpContext 。
- properties
- AuthenticationProperties
傳回
工作。
適用於
SignOutAsync(HttpContext, String, AuthenticationProperties)
登出指定配置的主體。
public:
[System::Runtime::CompilerServices::Extension]
static System::Threading::Tasks::Task ^ SignOutAsync(Microsoft::AspNetCore::Http::HttpContext ^ context, System::String ^ scheme, Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
public static System.Threading.Tasks.Task SignOutAsync (this Microsoft.AspNetCore.Http.HttpContext context, string scheme, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
public static System.Threading.Tasks.Task SignOutAsync (this Microsoft.AspNetCore.Http.HttpContext context, string? scheme, Microsoft.AspNetCore.Authentication.AuthenticationProperties? properties);
static member SignOutAsync : Microsoft.AspNetCore.Http.HttpContext * string * Microsoft.AspNetCore.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task
<Extension()>
Public Function SignOutAsync (context As HttpContext, scheme As String, properties As AuthenticationProperties) As Task
參數
- context
- HttpContext
內容 HttpContext 。
- scheme
- String
驗證配置的名稱。
- properties
- AuthenticationProperties
傳回
工作。