Language

AllowHtmlAttribute クラス

定義

プロパティの要求の検証をスキップすることにより、モデル バインディング時に HTML マークアップを要求に含めることができます (スクリプトによる攻略を防ぐため、要求の検証を無効にするすべてのモデルをアプリケーションで明示的に検証することを強くお勧めします)。

[System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public sealed class AllowHtmlAttribute : Attribute, System.Web.Mvc.IMetadataAware
type AllowHtmlAttribute = class
    inherit Attribute
    interface IMetadataAware
Public NotInheritable Class AllowHtmlAttribute
Inherits Attribute
Implements IMetadataAware
継承
AllowHtmlAttribute
属性
実装

コンストラクター

Name 説明
AllowHtmlAttribute()

AllowHtmlAttribute クラスの新しいインスタンスを初期化します。

メソッド

Name 説明
OnMetadataCreated(ModelMetadata)

このメソッドは、ASP.NET MVC 検証インフラストラクチャをサポートします。コードから直接使用するためのものではありません。

適用対象