AuthorizeAttribute クラス

定義

この属性が適用されるクラスまたはメソッドに、指定した承認が必要であることを指定します。

public ref class AuthorizeAttribute : Attribute, Microsoft::AspNetCore::Authorization::IAuthorizeData
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true, Inherited=true)]
public class AuthorizeAttribute : Attribute, Microsoft.AspNetCore.Authorization.IAuthorizeData
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true, Inherited=true)>]
type AuthorizeAttribute = class
    inherit Attribute
    interface IAuthorizeData
Public Class AuthorizeAttribute
Inherits Attribute
Implements IAuthorizeData
継承
AuthorizeAttribute
属性
実装

コンストラクター

AuthorizeAttribute()

AuthorizeAttribute クラスの新しいインスタンスを初期化します。

AuthorizeAttribute(String)

指定したポリシーを使用して、 クラスの AuthorizeAttribute 新しいインスタンスを初期化します。

プロパティ

ActiveAuthenticationSchemes
古い.

ユーザー情報を作成するスキームのコンマ区切りのリストを取得または設定します。

AuthenticationSchemes

ユーザー情報を作成するスキームのコンマ区切りのリストを取得または設定します。

Policy

リソースへのアクセスを決定するポリシー名を取得または設定します。

Roles

リソースへのアクセスを許可するロールのコンマ区切りのリストを取得または設定します。

メソッド

ToString()

この属性が適用されるクラスまたはメソッドに、指定した承認が必要であることを指定します。

適用対象