HandleRequestResult.Fail 方法

定义

重载

Fail(Exception)

指示身份验证期间失败。

Fail(String)

指示身份验证期间失败。

Fail(Exception, AuthenticationProperties)

指示身份验证期间失败。

Fail(String, AuthenticationProperties)

指示身份验证期间失败。

Fail(Exception)

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

指示身份验证期间失败。

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

参数

failure
Exception

失败异常。

返回

结果。

适用于

Fail(String)

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

指示身份验证期间失败。

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

参数

failureMessage
String

失败消息。

返回

结果。

适用于

Fail(Exception, AuthenticationProperties)

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

指示身份验证期间失败。

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

参数

failure
Exception

失败异常。

properties
AuthenticationProperties

身份验证会话的附加状态值。

返回

结果。

适用于

Fail(String, AuthenticationProperties)

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

指示身份验证期间失败。

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

参数

failureMessage
String

失败消息。

properties
AuthenticationProperties

身份验证会话的附加状态值。

返回

结果。

适用于