Share via


RequireAntiforgeryTokenAttribute クラス

定義

偽造防止トークンを検証する必要があるかどうかを示すために使用できる属性。

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method)]
public class RequireAntiforgeryTokenAttribute : Attribute, Microsoft.AspNetCore.Antiforgery.IAntiforgeryMetadata
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method)>]
type RequireAntiforgeryTokenAttribute = class
    inherit Attribute
    interface IAntiforgeryMetadata
Public Class RequireAntiforgeryTokenAttribute
Inherits Attribute
Implements IAntiforgeryMetadata
継承
RequireAntiforgeryTokenAttribute
属性
実装

コンストラクター

RequireAntiforgeryTokenAttribute(Boolean)

偽造防止トークンを検証する必要があるかどうかを示すために使用できる属性。

プロパティ

RequiresValidation

偽造防止トークンを検証するかどうかを示す値を取得または設定します。

適用対象