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

获取或设置一个值,该值指示是否应验证防伪造令牌。

适用于