This documentation is archived and is not being maintained.

Uri.EscapeString Method

Converts a string to its escaped representation.

[Visual Basic]
Protected Shared Function EscapeString( _
   ByVal str As String _
) As String
protected static string EscapeString(
 string str
protected: static String* EscapeString(
 String* str
protected static function EscapeString(
   str : String
) : String;


The string to transform to its escaped representation.

Return Value

The escaped representation of the string.


The EscapeString method converts all characters with an ASCII value greater than 127 to hexidecimal representation.

The string is escaped according to RFC 2396.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

Uri Class | Uri Members | System Namespace