Delen via


AuthenticateResult.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:
AuthenticateResult.cs
Source:
AuthenticateResult.cs
Source:
AuthenticateResult.cs

Indicates that there was a failure during authentication.

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

Parameters

failure
Exception

The failure exception.

Returns

The result.

Applies to

Fail(String)

Source:
AuthenticateResult.cs
Source:
AuthenticateResult.cs
Source:
AuthenticateResult.cs

Indicates that there was a failure during authentication.

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

Parameters

failureMessage
String

The failure message.

Returns

The result.

Applies to

Fail(Exception, AuthenticationProperties)

Source:
AuthenticateResult.cs
Source:
AuthenticateResult.cs
Source:
AuthenticateResult.cs

Indicates that there was a failure during authentication.

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

Parameters

failure
Exception

The failure exception.

properties
AuthenticationProperties

Additional state values for the authentication session.

Returns

The result.

Applies to

Fail(String, AuthenticationProperties)

Source:
AuthenticateResult.cs
Source:
AuthenticateResult.cs
Source:
AuthenticateResult.cs

Indicates that there was a failure during authentication.

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

Parameters

failureMessage
String

The failure message.

properties
AuthenticationProperties

Additional state values for the authentication session.

Returns

The result.

Applies to