This documentation is archived and is not being maintained.

Uri.HexEscape Method

Converts a specified character into its hexadecimal equivalent.

[Visual Basic]
Public Shared Function HexEscape( _
   ByVal character As Char _
) As String
[C#]
public static string HexEscape(
 char character
);
[C++]
public: static String* HexEscape(
 __wchar_t character
);
[JScript]
public static function HexEscape(
   character : Char
) : String;

Parameters

character
The character to convert to hexadecimal representation.

Return Value

The hexadecimal representation of the specified character.

Exceptions

Exception Type Condition
ArgumentOutOfRangeException character is greater than 255.

Requirements

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

Show: