다음을 통해 공유


Uri.UserEscaped 속성

Uri 인스턴스를 만들기 전에 URI 문자열을 완전히 이스케이프했음을 나타냅니다.

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

구문

‘선언
Public ReadOnly Property UserEscaped As Boolean
‘사용 방법
Dim instance As Uri
Dim value As Boolean

value = instance.UserEscaped
public bool UserEscaped { get; }
public:
property bool UserEscaped {
    bool get ();
}
/** @property */
public boolean get_UserEscaped ()
public function get UserEscaped () : boolean

속성 값

Uri 인스턴스를 만들 때 dontEscape 매개 변수를 true로 설정했으면 true이고, 그렇지 않으면 false입니다.

설명

UserEscaped 속성이 true로 설정되면 Uri 인스턴스를 만드는 데 사용된 문자열을 완전히 이스케이프한 후에 생성자에 전달했음을 나타냅니다. 즉, 생성자 호출의 dontEscape 매개 변수를 true로 설정했음을 나타냅니다.

예제

다음 예제에서는 Uri 인스턴스를 만들고 이 인스턴스를 만들 때 완전히 이스케이프했는지 여부를 확인합니다.

Dim uriAddress As New Uri("https://user:password@www.contoso.com/index.htm ")
Console.WriteLine(uriAddress.UserInfo)
Console.WriteLine("Fully Escaped {0}", IIf(uriAddress.UserEscaped, "yes", "no")) 'TODO: For performance reasons this should be changed to nested IF statements
    
Uri uriAddress = new Uri ("https://user:password@www.contoso.com/index.htm ");
Console.WriteLine(uriAddress.UserInfo);
Console.WriteLine("Fully Escaped {0}", uriAddress.UserEscaped ? "yes" : "no");

플랫폼

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 네임스페이스