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
[C#]
public static bool IsHexEncoding(
 string pattern,
 int index
);
[C++]
public: static bool IsHexEncoding(
 String* pattern,
 int index
);
[JScript]
public static function IsHexEncoding(
   pattern : String,
 index : int
) : Boolean;

Parameters

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

Return Value

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

Remarks

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).

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: