共用方式為


IAuthorizationEvaluator.HasFailed(AuthorizationHandlerContext) 方法

定義

如果授權失敗,則傳回 true。

public:
 bool HasFailed(Microsoft::AspNetCore::Authorization::AuthorizationHandlerContext ^ context);
public bool HasFailed (Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext context);
abstract member HasFailed : Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext -> bool
Public Function HasFailed (context As AuthorizationHandlerContext) As Boolean

參數

context
AuthorizationHandlerContext

授權資訊。

傳回

如果授權失敗,則為 True。

適用於