System.Uri.IsHexEncoding Method

Determines whether a character in a string is hexadecimal encoded.

Syntax

public static bool IsHexEncoding (string pattern, int index)

Parameters

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

Returns

A bool value that is true if pattern is hexadecimal encoded at the specified location; otherwise, false.

Remarks

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

Requirements

Namespace: System
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0