PageModel.SignOut Method

Definition

Overloads

SignOut(String[])

Creates a SignOutResult with the specified authentication schemes.

SignOut(AuthenticationProperties, String[])

Creates a SignOutResult with the specified authentication schemes and properties.

SignOut(String[])

Source:
PageModel.cs
Source:
PageModel.cs
Source:
PageModel.cs

Creates a SignOutResult with the specified authentication schemes.

C#
public virtual Microsoft.AspNetCore.Mvc.SignOutResult SignOut (params string[] authenticationSchemes);

Parameters

authenticationSchemes
String[]

The authentication schemes to use for the sign-out operation.

Returns

The created SignOutResult for the response.

Applies to

ASP.NET Core 9.0 and other versions
Product Versions
ASP.NET Core 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

SignOut(AuthenticationProperties, String[])

Source:
PageModel.cs
Source:
PageModel.cs
Source:
PageModel.cs

Creates a SignOutResult with the specified authentication schemes and properties.

C#
public virtual Microsoft.AspNetCore.Mvc.SignOutResult SignOut (Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, params string[] authenticationSchemes);

Parameters

properties
AuthenticationProperties

AuthenticationProperties used to perform the sign-out operation.

authenticationSchemes
String[]

The authentication scheme to use for the sign-out operation.

Returns

The created SignOutResult for the response.

Applies to

ASP.NET Core 9.0 and other versions
Product Versions
ASP.NET Core 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0