ResultContext<TOptions>.Fail Method

Definition

Overloads

Fail(Exception)

Indicates that there was a failure during authentication.

Fail(String)

Indicates that there was a failure during authentication.

Fail(Exception)

Source:
ResultContext.cs
Source:
ResultContext.cs
Source:
ResultContext.cs

Indicates that there was a failure during authentication.

C#
public void Fail (Exception failure);

Parameters

failure
Exception

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

Fail(String)

Source:
ResultContext.cs
Source:
ResultContext.cs
Source:
ResultContext.cs

Indicates that there was a failure during authentication.

C#
public void Fail (string failureMessage);

Parameters

failureMessage
String

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