共用方式為


AuthenticationHttpContextExtensions.SignOutAsync 方法

定義

多載

SignOutAsync(HttpContext, String)

登出指定配置的主體。

SignOutAsync(HttpContext)

登出預設驗證配置的主體。 您可以使用 來設定 DefaultSignOutScheme 登出的預設配置。

SignOutAsync(HttpContext, AuthenticationProperties)

登出預設驗證配置的主體。 您可以使用 來設定 DefaultSignOutScheme 登出的預設配置。

SignOutAsync(HttpContext, String, AuthenticationProperties)

登出指定配置的主體。

SignOutAsync(HttpContext, String)

來源:
AuthenticationHttpContextExtensions.cs
來源:
AuthenticationHttpContextExtensions.cs
來源:
AuthenticationHttpContextExtensions.cs

登出指定配置的主體。

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)

來源:
AuthenticationHttpContextExtensions.cs
來源:
AuthenticationHttpContextExtensions.cs
來源:
AuthenticationHttpContextExtensions.cs

登出預設驗證配置的主體。 您可以使用 來設定 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)

來源:
AuthenticationHttpContextExtensions.cs
來源:
AuthenticationHttpContextExtensions.cs
來源:
AuthenticationHttpContextExtensions.cs

登出預設驗證配置的主體。 您可以使用 來設定 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

傳回

工作。

適用於

SignOutAsync(HttpContext, String, AuthenticationProperties)

來源:
AuthenticationHttpContextExtensions.cs
來源:
AuthenticationHttpContextExtensions.cs
來源:
AuthenticationHttpContextExtensions.cs

登出指定配置的主體。

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

驗證配置的名稱。

傳回

工作。

適用於