AuthorizationResult.Failed 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Failed() |
建立失敗的授權結果。 |
Failed(AuthorizationFailure) |
建立失敗的授權結果。 |
Failed()
建立失敗的授權結果。
public:
static Microsoft::AspNetCore::Authorization::AuthorizationResult ^ Failed();
public static Microsoft.AspNetCore.Authorization.AuthorizationResult Failed ();
static member Failed : unit -> Microsoft.AspNetCore.Authorization.AuthorizationResult
Public Shared Function Failed () As AuthorizationResult
傳回
適用於
Failed(AuthorizationFailure)
建立失敗的授權結果。
public:
static Microsoft::AspNetCore::Authorization::AuthorizationResult ^ Failed(Microsoft::AspNetCore::Authorization::AuthorizationFailure ^ failure);
public static Microsoft.AspNetCore.Authorization.AuthorizationResult Failed (Microsoft.AspNetCore.Authorization.AuthorizationFailure failure);
static member Failed : Microsoft.AspNetCore.Authorization.AuthorizationFailure -> Microsoft.AspNetCore.Authorization.AuthorizationResult
Public Shared Function Failed (failure As AuthorizationFailure) As AuthorizationResult
參數
- failure
- AuthorizationFailure
包含授權失敗原因的相關資訊。