AuthorizeAttribute クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
この属性を適用するクラスまたはメソッドに、指定された承認が必要であることを指定します。
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() |
現在の属性を表す文字列を返します。 |