Share via


HttpRuntimeSection.EncoderType Proprietà

Definizione

Ottiene o imposta il nome di un tipo personalizzato che può essere usato per gestire la codifica HTML e 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

Valore della proprietà

Nome di un tipo che può essere usato per gestire la codifica HTML e URL.

Attributi

Commenti

ASP.NET usa il HttpEncoder tipo come gestore predefinito per le attività di codifica HTML e URL.

Per personalizzare il comportamento di codifica, è possibile creare una classe che eredita dal HttpEncoder tipo . Nel file di configurazione per un'applicazione, quindi si imposta l'attributo EncoderType dell'elemento httpRuntime sul nome di stringa completo del tipo personalizzato. Per altre informazioni, vedere Elemento httpRuntime (schema delle impostazioni di ASP.NET).For more information, see httpRuntime Element (ASP.NET Settings Schema).

Si applica a