다음을 통해 공유


Uri.PathAndQuery 속성

물음표(?)로 구분된 AbsolutePath 속성과 Query 속성을 가져옵니다.

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

구문

‘선언
Public ReadOnly Property PathAndQuery As String
‘사용 방법
Dim instance As Uri
Dim value As String

value = instance.PathAndQuery
public string PathAndQuery { get; }
public:
property String^ PathAndQuery {
    String^ get ();
}
/** @property */
public String get_PathAndQuery ()
public function get PathAndQuery () : String

속성 값

물음표(?)로 구분된 AbsolutePathQuery 속성이 포함된 String입니다.

설명

PathAndQuery 속성에는 요청과 함께 전달된 쿼리 정보와 서버의 절대 경로가 들어 있습니다. 이 속성은 AbsolutePath 속성과 Query 속성을 연결한 것과 같습니다.

PathAndQuery 속성은 RFC 2396에 따라 이스케이프됩니다.

예제

다음 예제에서는 URI의 경로(/catalog/shownew.htm)와 쿼리(date= today) 정보를 콘솔에 씁니다.

Dim baseUri As New Uri("https://www.contoso.com/")
Dim myUri As New Uri(baseUri, "catalog/shownew.htm?date=today")
       
Console.WriteLine(myUri.PathAndQuery)
Uri baseUri = new Uri("https://www.contoso.com/");
 Uri myUri = new Uri(baseUri, "catalog/shownew.htm?date=today");
 
 Console.WriteLine(myUri.PathAndQuery);
Uri^ baseUri = gcnew Uri( "https://www.contoso.com/" );
Uri^ myUri = gcnew Uri( baseUri, "catalog/shownew.htm?date=today" );

Console::WriteLine( myUri->PathAndQuery );
Uri baseUri = new Uri("https://www.contoso.com/");
Uri myUri = new Uri(baseUri, "catalog/shownew.htm?date=today");
Console.WriteLine(myUri.get_PathAndQuery());

플랫폼

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