共用方式為


AuthenticateResult.Fail 方法

定義

多載

Fail(Exception)

表示驗證期間發生失敗。

Fail(String)

表示驗證期間發生失敗。

Fail(Exception, AuthenticationProperties)

表示驗證期間發生失敗。

Fail(String, AuthenticationProperties)

表示驗證期間發生失敗。

Fail(Exception)

來源:
AuthenticateResult.cs
來源:
AuthenticateResult.cs
來源:
AuthenticateResult.cs

表示驗證期間發生失敗。

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

參數

failure
Exception

失敗例外狀況。

傳回

結果。

適用於

Fail(String)

來源:
AuthenticateResult.cs
來源:
AuthenticateResult.cs
來源:
AuthenticateResult.cs

表示驗證期間發生失敗。

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

參數

failureMessage
String

失敗訊息。

傳回

結果。

適用於

Fail(Exception, AuthenticationProperties)

來源:
AuthenticateResult.cs
來源:
AuthenticateResult.cs
來源:
AuthenticateResult.cs

表示驗證期間發生失敗。

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

參數

failure
Exception

失敗例外狀況。

properties
AuthenticationProperties

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

傳回

結果。

適用於

Fail(String, AuthenticationProperties)

來源:
AuthenticateResult.cs
來源:
AuthenticateResult.cs
來源:
AuthenticateResult.cs

表示驗證期間發生失敗。

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

參數

failureMessage
String

失敗訊息。

properties
AuthenticationProperties

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

傳回

結果。

適用於