HttpRuntimeSection.EncoderType Propriété

Définition

Obtient ou définit le nom d’un type personnalisé qui peut être utilisé pour gérer le codage HTML et 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

Valeur de propriété

Nom d’un type qui peut être utilisé pour gérer l’encodage HTML et URL.

Attributs

Remarques

ASP.NET utilise le type HttpEncoder comme gestionnaire par défaut pour les tâches d’encodage HTML et URL.

Pour personnaliser le comportement d’encodage, vous pouvez créer une classe qui hérite du HttpEncoder type. Dans le fichier de configuration d’une application, vous définissez ensuite l’attribut de l’élément EncoderType sur le httpRuntime nom de chaîne complet du type personnalisé. Pour plus d’informations, consultez l’élément httpRuntime (schéma de paramètres ASP.NET).

S’applique à