Uri.EscapeString(String) Méthode

Définition

Attention

The method has been deprecated. Please use GetComponents() or static EscapeUriString() to escape a Uri component or a string. http://go.microsoft.com/fwlink/?linkid=14202

Attention

The method has been deprecated. Please use GetComponents() or static EscapeUriString() to escape a Uri component or a string. https://go.microsoft.com/fwlink/?linkid=14202

Convertit une chaîne en sa représentation d’échappement.

protected:
 static System::String ^ EscapeString(System::String ^ str);
protected static string EscapeString(string str);
[System.Obsolete("The method has been deprecated. Please use GetComponents() or static EscapeUriString() to escape a Uri component or a string. http://go.microsoft.com/fwlink/?linkid=14202")]
protected static string EscapeString(string str);
[System.Obsolete("The method has been deprecated. Please use GetComponents() or static EscapeUriString() to escape a Uri component or a string. https://go.microsoft.com/fwlink/?linkid=14202")]
protected static string EscapeString(string str);
static member EscapeString : string -> string
[<System.Obsolete("The method has been deprecated. Please use GetComponents() or static EscapeUriString() to escape a Uri component or a string. http://go.microsoft.com/fwlink/?linkid=14202")>]
static member EscapeString : string -> string
[<System.Obsolete("The method has been deprecated. Please use GetComponents() or static EscapeUriString() to escape a Uri component or a string. https://go.microsoft.com/fwlink/?linkid=14202")>]
static member EscapeString : string -> string
Protected Shared Function EscapeString (str As String) As String

Paramètres

str
String

Chaîne à transformer en représentation échappée.

Retours

Représentation d’échappement de la chaîne.

Attributs

Remarques

La EscapeString méthode convertit les caractères réservés RFC 2396 et tous les caractères dont la valeur de caractère est supérieure à 127 en représentation hexadécimale. Tous les caractères Unicode sont convertis au format UTF-8 avant d’être placés dans l’échappement.

Par défaut, la chaîne est échappée selon RFC 2396. Si l’analyse IDN (International Resource Identifiers) ou INTERNATIONALized Domain Name (IDN) est activée, la chaîne est échappée selon RFC 3986 et RFC 3987.

Pour plus d’informations sur la prise en charge de l’IRI, consultez la section Notes pour la Uri classe.

S’applique à