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。

适用于