HandleRequestResult.Fail 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Fail(Exception) |
表示驗證期間發生失敗。 |
Fail(String) |
表示驗證期間發生失敗。 |
Fail(Exception, AuthenticationProperties) |
表示驗證期間發生失敗。 |
Fail(String, AuthenticationProperties) |
表示驗證期間發生失敗。 |
Fail(Exception)
表示驗證期間發生失敗。
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)
表示驗證期間發生失敗。
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)
表示驗證期間發生失敗。
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)
表示驗證期間發生失敗。
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
驗證工作階段的其他狀態值。
傳回
結果。