Converts a specified ASCII character into its escaped hexadecimal equivalent.
- character
- A char containing the character to convert to escaped hexadecimal representation.
A string containing the escaped hexadecimal representation of the specified character.
Type Reason ArgumentOutOfRangeException The numerical value of character is greater than 255.
The returned string is in the form "%XX", where X represents a hexadecimal digit (0-9, A-F).
Namespace: System
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0