Share via


UrlMapping.MappedUrl プロパティ

定義

Web アプリケーション内の 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

プロパティ値

String

Url プロパティで指定された値に割り当てられている、Web アプリケーション内の 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 、構成ファイルの mappedUrl セクション内の要素の add 属性に相当する urlMappings プログラムです。

注意

IIS 5.0 を使用する場合、サポートされているページの種類 (.aspx ファイルなど) からサポートされていないページの種類 (.asp ページなど) にプロパティを使用 MappedUrl してマップすると、エラーが発生します。 この種類のマッピングは、IIS バージョン 6.0 でサポートされています。

適用対象

こちらもご覧ください