AuthenticationHttpContextExtensions.SignOutAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SignOutAsync(HttpContext, String) |
Sign out a principal for the specified scheme. |
SignOutAsync(HttpContext) |
Sign out a principal for the default authentication scheme. The default scheme for signing out can be configured using DefaultSignOutScheme. |
SignOutAsync(HttpContext, AuthenticationProperties) |
Sign out a principal for the default authentication scheme. The default scheme for signing out can be configured using DefaultSignOutScheme. |
SignOutAsync(HttpContext, String, AuthenticationProperties) |
Sign out a principal for the specified scheme. |
SignOutAsync(HttpContext, String)
Sign out a principal for the specified scheme.
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
Parameters
- context
- HttpContext
The HttpContext context.
- scheme
- String
The name of the authentication scheme.
Returns
The task.
Applies to
SignOutAsync(HttpContext)
Sign out a principal for the default authentication scheme. The default scheme for signing out can be configured using 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
Parameters
- context
- HttpContext
The HttpContext context.
Returns
The task.
Applies to
SignOutAsync(HttpContext, AuthenticationProperties)
Sign out a principal for the default authentication scheme. The default scheme for signing out can be configured using 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
Parameters
- context
- HttpContext
The HttpContext context.
- properties
- AuthenticationProperties
The AuthenticationProperties properties.
Returns
The task.
Applies to
SignOutAsync(HttpContext, String, AuthenticationProperties)
Sign out a principal for the specified scheme.
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
Parameters
- context
- HttpContext
The HttpContext context.
- scheme
- String
The name of the authentication scheme.
- properties
- AuthenticationProperties
The AuthenticationProperties properties.
Returns
The task.