ResultContext<TOptions>.Fail Method
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.
Fail(Exception) |
Indicates that there was a failure during authentication. |
Fail(String) |
Indicates that there was a failure during authentication. |
- Source:
- ResultContext.cs
- Source:
- ResultContext.cs
- Source:
- ResultContext.cs
Indicates that there was a failure during authentication.
public:
void Fail(Exception ^ failure);
C#
public void Fail (Exception failure);
member this.Fail : Exception -> unit
Public Sub Fail (failure As Exception)
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 |
- Source:
- ResultContext.cs
- Source:
- ResultContext.cs
- Source:
- ResultContext.cs
Indicates that there was a failure during authentication.
public:
void Fail(System::String ^ failureMessage);
C#
public void Fail (string failureMessage);
member this.Fail : string -> unit
Public Sub Fail (failureMessage As String)
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 |