Uri.AbsolutePath 속성

정의

URI의 절대 경로를 가져옵니다.

public:
 property System::String ^ AbsolutePath { System::String ^ get(); };
public string AbsolutePath { get; }
member this.AbsolutePath : string
Public ReadOnly Property AbsolutePath As String

속성 값

String

리소스의 절대 경로입니다.

예외

이 인스턴스가 상대 URI를 나타내고 이 속성이 절대 URI에만 유효한 경우

예제

다음 예제에서는 콘솔에 대한 경로를 /catalog/shownew.htm 씁니다.

Uri^ baseUri = gcnew Uri( "http://www.contoso.com/" );
Uri^ myUri = gcnew Uri( baseUri,"catalog/shownew.htm?date=today" );
Console::WriteLine( myUri->AbsolutePath );
Uri baseUri = new Uri("http://www.contoso.com/");
Uri myUri = new Uri(baseUri, "catalog/shownew.htm?date=today");

Console.WriteLine(myUri.AbsolutePath);
open System

let baseUri = Uri "http://www.contoso.com/"
let myUri = Uri(baseUri, "catalog/shownew.htm?date=today")

printfn $"{myUri.AbsolutePath}"
Dim baseUri As New Uri("http://www.contoso.com/")
Dim myUri As New Uri(baseUri, "catalog/shownew.htm?date=today")
       
Console.WriteLine(myUri.AbsolutePath)

설명

AbsolutePath 속성 정보에 대 한 요청을 해결 하려면 서버를 사용 하는 경로 정보를 포함 합니다. 일반적으로 확보 하 여 애플리케이션 또는 스크립트 정보를 제공 하도록 서버를 실행 해야 하지만 서버의 파일 시스템에 원하는 정보에 대 한 경로입니다.

구성표, 호스트 이름 또는 URI의 쿼리 부분 경로 정보가 포함 되지 않습니다.

적용 대상