Leggere in inglese

Condividi tramite


Uri.EscapeString(String) Metodo

Definizione

Attenzione

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

Attenzione

Uri.EscapeString has been deprecated. Use GetComponents() or static EscapeDataString() to escape a Uri component or a string.

Attenzione

Uri.EscapeString has been deprecated. Use GetComponents() or Uri.EscapeDataString to escape a Uri component or a string.

Attenzione

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

Converte una stringa nella relativa rappresentazione escape.

C#
[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);
C#
[System.Obsolete("Uri.EscapeString has been deprecated. Use GetComponents() or static EscapeDataString() to escape a Uri component or a string.")]
protected static string EscapeString(string? str);
C#
[System.Obsolete("Uri.EscapeString has been deprecated. Use GetComponents() or Uri.EscapeDataString to escape a Uri component or a string.")]
protected static string EscapeString(string? str);
C#
[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);
C#
protected static string EscapeString(string str);
C#
[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);

Parametri

str
String

Stringa da trasformare nella rispettiva rappresentazione escape.

Restituisce

Rappresentazione escape della stringa.

Attributi

Commenti

Il EscapeString metodo converte i caratteri riservati RFC 2396 e tutti i caratteri con un valore di carattere maggiore di 127 in rappresentazione esadecimale. Tutti i caratteri Unicode vengono convertiti in formato UTF-8 prima di essere preceduti da un carattere di escape.

Per impostazione predefinita, la stringa viene preceduta da un escape in base a RFC 2396. Se l'analisi IDN (International Resource Identifiers) o Internationalized Domain Name (IDN) è abilitata, la stringa viene preceduta da un escape in base a RFC 3986 e RFC 3987.

Per altre informazioni sul supporto IRI, vedere la sezione Osservazioni per la Uri classe .

Si applica a

Prodotto Versioni (Obsoleto)
.NET (Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9)
.NET Framework 1.1 (2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1)
.NET Standard (2.0, 2.1)