語言

PassThroughAuthorizationHandler 類別

定義

基礎結構類別,可讓 IAuthorizationRequirement 成為自己的 IAuthorizationHandler 。

public ref class PassThroughAuthorizationHandler : Microsoft::AspNetCore::Authorization::IAuthorizationHandler
public class PassThroughAuthorizationHandler : Microsoft.AspNetCore.Authorization.IAuthorizationHandler
type PassThroughAuthorizationHandler = class
    interface IAuthorizationHandler
Public Class PassThroughAuthorizationHandler
Implements IAuthorizationHandler
繼承
PassThroughAuthorizationHandler
實作

建構函式

名稱 Description
PassThroughAuthorizationHandler()

建立 PassThroughAuthorizationHandler 的新執行個體。

PassThroughAuthorizationHandler(IOptions<AuthorizationOptions>)

建立 PassThroughAuthorizationHandler 的新執行個體。

方法

名稱 Description
HandleAsync(AuthorizationHandlerContext)

如果允許授權,請做出決定。

適用於