다음을 통해 공유


UrlMapping.MappedUrl 속성

정의

웹 애플리케이션의 URL입니다.

public:
 property System::String ^ MappedUrl { System::String ^ get(); };
[System.Configuration.ConfigurationProperty("mappedUrl", IsRequired=true)]
public string MappedUrl { get; }
[<System.Configuration.ConfigurationProperty("mappedUrl", IsRequired=true)>]
member this.MappedUrl : string
Public ReadOnly Property MappedUrl As String

속성 값

속성에 지정된 값에 매핑된 웹 애플리케이션의 Url URL입니다.

특성

예제

다음 코드 예제에서는 속성을 가져오는 방법을 보여 있습니다 MappedUrl . 이 예제는 클래스에 대한 더 큰 예제에서 가져옵니다 UrlMapping .

urlMap = (UrlMapping)urlMapSection.UrlMappings[showVal - 1];
realURL.Text = urlMap.MappedUrl;
urlMap = CType(urlMapSection.UrlMappings(showVal - 1), UrlMapping)
realURL.Text = urlMap.MappedUrl

설명

MappedUrl 속성은 구성 파일 섹션에 add 있는 요소의 특성에 urlMappings 해당하는 mappedUrl 프로그래밍 방식입니다.

메모

IIS 5.0을 사용하는 경우 속성을 사용하여 MappedUrl 지원되는 페이지 형식(예: .aspx 파일)에서 지원되지 않는 페이지 형식(예: .asp 페이지)으로 매핑하는 경우 오류가 발생합니다. 이 유형의 매핑은 IIS 버전 6.0에서 지원됩니다.

적용 대상

추가 정보