HandleRequestResult.Fail Method   
Definition
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.
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.HandleRequestResultPublic Shared Function Fail (failure As Exception) As HandleRequestResultParameters
- 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.HandleRequestResultPublic Shared Function Fail (failureMessage As String) As HandleRequestResultParameters
- 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.HandleRequestResultPublic Shared Function Fail (failure As Exception, properties As AuthenticationProperties) As HandleRequestResultParameters
- 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.HandleRequestResultPublic Shared Function Fail (failureMessage As String, properties As AuthenticationProperties) As HandleRequestResultParameters
- failureMessage
- String
The failure message.
- properties
- AuthenticationProperties
Additional state values for the authentication session.
Returns
The result.