Share via


HttpRuntimeSection.EncoderType プロパティ

定義

HTML エンコードおよび URL エンコードの処理に使用できるカスタムの型の名前を取得または設定します。

public:
 property System::String ^ EncoderType { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("encoderType", DefaultValue="System.Web.Util.HttpEncoder")]
[System.Configuration.StringValidator(MinLength=1)]
public string EncoderType { get; set; }
[<System.Configuration.ConfigurationProperty("encoderType", DefaultValue="System.Web.Util.HttpEncoder")>]
[<System.Configuration.StringValidator(MinLength=1)>]
member this.EncoderType : string with get, set
Public Property EncoderType As String

プロパティ値

HTML エンコードおよび URL エンコードの処理に使用できる型の名前。

属性

注釈

ASP.NET は、 HttpEncoder HTML および URL エンコード タスクの既定のハンドラーとして 型を使用します。

エンコード動作をカスタマイズするには、 型から継承するクラスを HttpEncoder 作成します。 アプリケーションの構成ファイルで、 要素の属性をEncoderTypehttpRuntimeカスタム型の完全修飾文字列名に設定します。 詳細については、「 httpRuntime 要素 (ASP.NET 設定スキーマ)」を参照してください。

適用対象