ValidateInputAttribute 類別

定義

表示用來標示必須驗證其輸入之動作方法的屬性。

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public class ValidateInputAttribute : System.Web.Mvc.FilterAttribute, System.Web.Mvc.IAuthorizationFilter
type ValidateInputAttribute = class
    inherit FilterAttribute
    interface IAuthorizationFilter
Public Class ValidateInputAttribute
Inherits FilterAttribute
Implements IAuthorizationFilter
繼承
ValidateInputAttribute
屬性
實作

建構函式

ValidateInputAttribute(Boolean)

初始化 ValidateInputAttribute 類別的新執行個體。

屬性

AllowMultiple

取得或設定值,這個值表示是否可以指定多個篩選條件屬性執行個體。

(繼承來源 FilterAttribute)
EnableValidation

取得或設定值,這個值表示是否要啟用驗證。

Order

取得或設定動作篩選條件的執行順序。

(繼承來源 FilterAttribute)

方法

OnAuthorization(AuthorizationContext)

在需要授權時呼叫。

適用於