다음을 통해 공유


Uri.HexUnescape 메서드

문자의 지정된 16진수 표현을 문자로 변환합니다.

네임스페이스: System
어셈블리: System(system.dll)

구문

‘선언
Public Shared Function HexUnescape ( _
    pattern As String, _
    ByRef index As Integer _
) As Char
‘사용 방법
Dim pattern As String
Dim index As Integer
Dim returnValue As Char

returnValue = Uri.HexUnescape(pattern, index)
public static char HexUnescape (
    string pattern,
    ref int index
)
public:
static wchar_t HexUnescape (
    String^ pattern, 
    int% index
)
public static char HexUnescape (
    String pattern, 
    /** @ref */ int index
)
JScript에서는 값 형식 인수를 참조로 전달할 수 없습니다.

매개 변수

  • pattern
    문자의 16진수 표현입니다.
  • index
    문자의 16진수 표현이 시작되는 pattern의 위치입니다.

반환 값

index 위치에 있으며 16진수로 인코딩된 문자입니다. index에 있는 문자가 16진수로 인코딩되지 않은 경우에는 index에 있는 문자가 반환됩니다. index의 값이 증가되어, 반환된 문자 다음에 오는 문자를 가리킵니다.

예외

예외 형식 조건

ArgumentOutOfRangeException

index가 0보다 작거나 pattern의 문자 수보다 크거나 같은 경우

설명

다음 코드 예제에서는 문자가 16진수로 인코딩되었는지 여부를 확인하고 인코딩된 경우 해당 문자를 콘솔에 씁니다.

Dim testString As String = "%75"
Dim index As Integer = 0
If Uri.IsHexEncoding(testString, 0) Then
    Console.WriteLine("The character is {0}", Uri.HexUnescape(testString, index))
Else
    Console.WriteLine("The character is not hexadecimal encoded")
End If
string testString = "%75";
int index = 0;
if (Uri.IsHexEncoding(testString, 0))
     Console.WriteLine("The character is {0}", Uri.HexUnescape(testString, ref index));
else
     Console.WriteLine("The character is not hexadecimal encoded");

플랫폼

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework에서 모든 플래폼의 모든 버전을 지원하지는 않습니다. 지원되는 버전의 목록은 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

2.0, 1.1, 1.0에서 지원

.NET Compact Framework

2.0, 1.0에서 지원

참고 항목

참조

Uri 클래스
Uri 멤버
System 네임스페이스