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)

承認が必要なときに呼び出されます。

適用対象