HttpRuntimeSection.EncoderType Propriété

Définition

Obtient ou définit le nom d'un type personnalisé qui peut être utilisé pour gérer l'encodage 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 HttpEncoder type 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 EncoderType de l’élément httpRuntime sur le nom de chaîne complet du type personnalisé. Pour plus d’informations, consultez httpRuntime, élément (schéma des paramètres ASP.NET).

S’applique à