Uri.EscapeString(String) Methode

Definitie

Let op

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

Let op

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

Converteert een tekenreeks naar de escape-weergave.

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

Parameters

str
String

De tekenreeks die moet worden getransformeerd naar de escape-weergave.

Retouren

De escape-weergave van de tekenreeks.

Kenmerken

Opmerkingen

Met de EscapeString methode worden gereserveerde RFC 2396-tekens en alle tekens met een tekenwaarde groter dan 127 geconverteerd naar hexadecimale weergave. Alle Unicode-tekens worden geconverteerd naar UTF-8-indeling voordat ze worden ontsnapt.

Standaard wordt de tekenreeks ontsnapt volgens RFC 2396. Als IURI's (International Resource Identifiers) of IDN-parsering (International Resource Identifiers) is ingeschakeld, wordt de tekenreeks ontsnapt volgens RFC 3986 en RFC 3987.

Zie de sectie Opmerkingen voor de Uri klas voor meer informatie over IRI-ondersteuning.

Van toepassing op