共用方式為


DefaultAuthorizationEvaluator.HasFailed(AuthorizationHandlerContext) 方法

定義

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

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

參數

context
AuthorizationHandlerContext

授權資訊。

傳回

如果授權失敗,則為 True。

實作

適用於