共用方式為


RequireAntiforgeryTokenAttribute.RequiresValidation 屬性

定義

取得或設定值,指出是否應該驗證反分叉權杖。

public bool RequiresValidation { get; }
member this.RequiresValidation : bool
Public ReadOnly Property RequiresValidation As Boolean

屬性值

實作

備註

預設為 true ; false 表示可以避免反分叉權杖的驗證檢查。

適用於