共用方式為


HandleRequestResult.Fail 方法

定義

多載

Fail(Exception)

表示驗證期間發生失敗。

Fail(String)

表示驗證期間發生失敗。

Fail(Exception, AuthenticationProperties)

表示驗證期間發生失敗。

Fail(String, AuthenticationProperties)

表示驗證期間發生失敗。

Fail(Exception)

來源:
HandleRequestResult.cs
來源:
HandleRequestResult.cs
來源:
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)

來源:
HandleRequestResult.cs
來源:
HandleRequestResult.cs
來源:
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)

來源:
HandleRequestResult.cs
來源:
HandleRequestResult.cs
來源:
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)

來源:
HandleRequestResult.cs
來源:
HandleRequestResult.cs
來源:
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

驗證工作階段的其他狀態值。

傳回

結果。

適用於