AutoValidateAntiforgeryTokenAttribute クラス

定義

安全でないすべての HTTP メソッドに対して偽造防止トークンの検証を行う属性。 GET、HEAD、OPTIONS、TRACE 以外の HTTP メソッドには偽造防止トークンが必要です。

public ref class AutoValidateAntiforgeryTokenAttribute : Attribute, Microsoft::AspNetCore::Mvc::Filters::IFilterFactory, Microsoft::AspNetCore::Mvc::Filters::IOrderedFilter
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public class AutoValidateAntiforgeryTokenAttribute : Attribute, Microsoft.AspNetCore.Mvc.Filters.IFilterFactory, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)>]
type AutoValidateAntiforgeryTokenAttribute = class
    inherit Attribute
    interface IFilterFactory
    interface IFilterMetadata
    interface IOrderedFilter
Public Class AutoValidateAntiforgeryTokenAttribute
Inherits Attribute
Implements IFilterFactory, IOrderedFilter
継承
AutoValidateAntiforgeryTokenAttribute
属性
実装

注釈

AutoValidateAntiforgeryTokenAttribute は、アプリケーションの既定で偽造防止トークンの検証をトリガーするグローバル フィルターとして適用できます。 コントローラーまたはアクションの偽造防止トークンの検証を抑制するには、 を使用 IgnoreAntiforgeryTokenAttribute します。

コンストラクター

AutoValidateAntiforgeryTokenAttribute()

安全でないすべての HTTP メソッドに対して偽造防止トークンの検証を行う属性。 GET、HEAD、OPTIONS、TRACE 以外の HTTP メソッドには偽造防止トークンが必要です。

プロパティ

IsReusable

の結果 CreateInstance(IServiceProvider) を要求間で再利用できるかどうかを示す値を取得します。

Order

フィルターの実行順序を決定するための順序値を取得します。 フィルターは、 プロパティの昇順の数値で Order 実行されます。

メソッド

CreateInstance(IServiceProvider)

実行可能フィルターのインスタンスを作成します。

適用対象