Uri.EscapeString(String) 메서드

정의

주의

The method has been deprecated. Please use GetComponents() or static EscapeUriString() to escape a Uri component or a string. http://go.microsoft.com/fwlink/?linkid=14202

주의

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

문자열을 이스케이프된 표현으로 변환합니다.Converts a string to its escaped representation.

protected:
 static System::String ^ EscapeString(System::String ^ str);
protected static string EscapeString (string? str);
[System.Obsolete("The method has been deprecated. Please use GetComponents() or static EscapeUriString() to escape a Uri component or a string. http://go.microsoft.com/fwlink/?linkid=14202")]
protected static string EscapeString (string str);
[System.Obsolete("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);
protected static string EscapeString (string str);
[System.Obsolete("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);
static member EscapeString : string -> string
[<System.Obsolete("The method has been deprecated. Please use GetComponents() or static EscapeUriString() to escape a Uri component or a string. http://go.microsoft.com/fwlink/?linkid=14202")>]
static member EscapeString : string -> string
[<System.Obsolete("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")>]
static member EscapeString : string -> string
Protected Shared Function EscapeString (str As String) As String

매개 변수

str
String

이스케이프된 표현으로 변형할 문자열입니다.The string to transform to its escaped representation.

반환

String

이스케이프된 문자열 표현입니다.The escaped representation of the string.

특성

설명

The <xref:System.Uri.EscapeString%2A> method converts RFC 2396 reserved characters and all characters with a character value greater than 127 to hexadecimal representation. 모든 유니코드 문자는 이스케이프 되기 전에 UTF-8 형식으로 변환 됩니다.All Unicode characters are converted to UTF-8 format before being escaped.

기본적으로이 문자열은 RFC 2396에 따라 이스케이프 됩니다.By default, the string is escaped according to RFC 2396. Iri (국제 리소스 식별자) 또는 IDN (다국어 도메인 이름) 구문 분석이 사용 하도록 설정 된 경우에는 RFC 3986 및 RFC 3987에 따라 문자열이 이스케이프 됩니다.If International Resource Identifiers (IRIs) or Internationalized Domain Name (IDN) parsing is enabled, the string is escaped according to RFC 3986 and RFC 3987.

IRI 지원에 대 한 자세한 내용은 클래스에 대 한 설명 섹션을 참조 하세요 Uri .For more information on IRI support, see the Remarks section for the Uri class.

적용 대상