Share via


HandleRequestResult.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, AuthenticationProperties)

Indicates that there was a failure during authentication.

Fail(String, AuthenticationProperties)

Indicates that there was a failure during authentication.

Fail(Exception)

Source:
HandleRequestResult.cs
Source:
HandleRequestResult.cs
Source:
HandleRequestResult.cs

Indicates that there was a failure during authentication.

public:
 static Microsoft::AspNetCore::Authentication::HandleRequestResult ^ Fail(Exception ^ failure);
public static Microsoft.AspNetCore.Authentication.HandleRequestResult Fail (Exception failure);
static member Fail : Exception -> Microsoft.AspNetCore.Authentication.HandleRequestResult
Public Shared Function Fail (failure As Exception) As HandleRequestResult

Parameters

failure
Exception

The failure exception.

Returns

The result.

Applies to

Fail(String)

Source:
HandleRequestResult.cs
Source:
HandleRequestResult.cs
Source:
HandleRequestResult.cs

Indicates that there was a failure during authentication.

public:
 static Microsoft::AspNetCore::Authentication::HandleRequestResult ^ Fail(System::String ^ failureMessage);
public static Microsoft.AspNetCore.Authentication.HandleRequestResult Fail (string failureMessage);
static member Fail : string -> Microsoft.AspNetCore.Authentication.HandleRequestResult
Public Shared Function Fail (failureMessage As String) As HandleRequestResult

Parameters

failureMessage
String

The failure message.

Returns

The result.

Applies to

Fail(Exception, AuthenticationProperties)

Source:
HandleRequestResult.cs
Source:
HandleRequestResult.cs
Source:
HandleRequestResult.cs

Indicates that there was a failure during authentication.

public:
 static Microsoft::AspNetCore::Authentication::HandleRequestResult ^ Fail(Exception ^ failure, Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
public static Microsoft.AspNetCore.Authentication.HandleRequestResult Fail (Exception failure, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
public static Microsoft.AspNetCore.Authentication.HandleRequestResult Fail (Exception failure, Microsoft.AspNetCore.Authentication.AuthenticationProperties? properties);
static member Fail : Exception * Microsoft.AspNetCore.Authentication.AuthenticationProperties -> Microsoft.AspNetCore.Authentication.HandleRequestResult
Public Shared Function Fail (failure As Exception, properties As AuthenticationProperties) As HandleRequestResult

Parameters

failure
Exception

The failure exception.

properties
AuthenticationProperties

Additional state values for the authentication session.

Returns

The result.

Applies to

Fail(String, AuthenticationProperties)

Source:
HandleRequestResult.cs
Source:
HandleRequestResult.cs
Source:
HandleRequestResult.cs

Indicates that there was a failure during authentication.

public:
 static Microsoft::AspNetCore::Authentication::HandleRequestResult ^ Fail(System::String ^ failureMessage, Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
public static Microsoft.AspNetCore.Authentication.HandleRequestResult Fail (string failureMessage, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
public static Microsoft.AspNetCore.Authentication.HandleRequestResult Fail (string failureMessage, Microsoft.AspNetCore.Authentication.AuthenticationProperties? properties);
static member Fail : string * Microsoft.AspNetCore.Authentication.AuthenticationProperties -> Microsoft.AspNetCore.Authentication.HandleRequestResult
Public Shared Function Fail (failureMessage As String, properties As AuthenticationProperties) As HandleRequestResult

Parameters

failureMessage
String

The failure message.

properties
AuthenticationProperties

Additional state values for the authentication session.

Returns

The result.

Applies to