다음을 통해 공유


Uri.EscapeString 메서드

참고: 이 메서드는 이제 사용되지 않습니다.

문자열을 이스케이프된 표현으로 변환합니다.

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

구문

‘선언
<ObsoleteAttribute("The method has been deprecated. Please use GetComponents() or static EscapeUriString() to escape a Uri component or a string. https://go.microsoft.com/fwlink/?linkid=14202")> _
Protected Shared Function EscapeString ( _
    str As String _
) As String
‘사용 방법
Dim str As String
Dim returnValue As String

returnValue = Uri.EscapeString(str)
[ObsoleteAttribute("The method has been deprecated. Please use GetComponents() or static EscapeUriString() to escape a Uri component or a string. https://go.microsoft.com/fwlink/?linkid=14202")] 
protected static string EscapeString (
    string str
)
[ObsoleteAttribute(L"The method has been deprecated. Please use GetComponents() or static EscapeUriString() to escape a Uri component or a string. https://go.microsoft.com/fwlink/?linkid=14202")] 
protected:
static String^ EscapeString (
    String^ str
)
/** @attribute ObsoleteAttribute("The method has been deprecated. Please use GetComponents() or static EscapeUriString() to escape a Uri component or a string. https://go.microsoft.com/fwlink/?linkid=14202") */ 
protected static String EscapeString (
    String str
)
ObsoleteAttribute("The method has been deprecated. Please use GetComponents() or static EscapeUriString() to escape a Uri component or a string. https://go.microsoft.com/fwlink/?linkid=14202") 
protected static function EscapeString (
    str : String
) : String

매개 변수

  • str
    이스케이프된 표현으로 변환할 문자열입니다.

반환 값

문자열의 이스케이프된 표현입니다.

설명

EscapeString 메서드는 RFC 2396의 예약된 문자와 문자 값이 127보다 큰 모든 문자를 16진수 표현으로 변환합니다. 모든 유니코드 문자는 이스케이프되기 전에 UTF-8 형식으로 변환됩니다.

문자열은 RFC 2396에 따라 이스케이프됩니다.

플랫폼

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

1.0, 1.1에서 지원
2.0에서 사용되지 않음(컴파일러 경고)

.NET Compact Framework

1.0에서 지원
2.0에서 사용되지 않음(컴파일러 경고)

참고 항목

참조

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