This documentation is archived and is not being maintained.

Uri.IsHexEncoding Method

Determines whether a string is hexadecimal encoded.

[Visual Basic]
Public Shared Function IsHexEncoding( _
   ByVal pattern As String, _
   ByVal index As Integer _
) As Boolean
public static bool IsHexEncoding(
 string pattern,
 int index
public: static bool IsHexEncoding(
 String* pattern,
 int index
public static function IsHexEncoding(
   pattern : String,
 index : int
) : Boolean;


The string to check.
The location in pattern to check for hexadecimal encoding.

Return Value

true if pattern is hexadecimal encoded at the specified location; otherwise, false.


The IsHexEncoding method checks for hexadecimal encoding that follows the pattern "%hexhex" in a string, where "hex" is a digit from 0-9 or or a letter from A-F (case-insensitive).


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