ValidateAntiForgeryTokenAttribute 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示用於防範偽造要求的屬性。
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public sealed class ValidateAntiForgeryTokenAttribute : System.Web.Mvc.FilterAttribute, System.Web.Mvc.IAuthorizationFilter
type ValidateAntiForgeryTokenAttribute = class
inherit FilterAttribute
interface IAuthorizationFilter
Public NotInheritable Class ValidateAntiForgeryTokenAttribute
Inherits FilterAttribute
Implements IAuthorizationFilter
- 繼承
- 屬性
- 實作
建構函式
ValidateAntiForgeryTokenAttribute() |
初始化 ValidateAntiForgeryTokenAttribute 類別的新執行個體。 |
屬性
AllowMultiple |
取得或設定值,這個值表示是否可以指定多個篩選條件屬性執行個體。 (繼承來源 FilterAttribute) |
Order |
取得或設定動作篩選條件的執行順序。 (繼承來源 FilterAttribute) |
Salt |
已淘汰.
取得或設定 salt 字串。 |
方法
OnAuthorization(AuthorizationContext) |
在需要授權時呼叫。 |