Share via


UrlMapping.MappedUrl Eigenschaft

Definition

Eine URL in der Webanwendung.

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

Eigenschaftswert

Die URL in der Webanwendung, die dem von der Url-Eigenschaft angegebenen Wert zugeordnet ist.

Attribute

Beispiele

Im folgenden Codebeispiel wird gezeigt, wie Die MappedUrl -Eigenschaft abgerufen wird. Dieses Beispiel stammt aus einem größeren Beispiel für die UrlMapping -Klasse.

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

Hinweise

Die MappedUrl -Eigenschaft ist die programmgesteuerte Entsprechung des mappedUrl Attributs des add Elements im urlMappings Abschnitt einer Konfigurationsdatei.

Hinweis

Wenn Sie IIS 5.0 verwenden, um einen MappedUrl unterstützten Seitentyp (z. B. eine ASPX-Datei) einem nicht unterstützten Seitentyp (z. B. eine ASP-Seite) zuzuordnen, tritt ein Fehler auf. Diese Art der Zuordnung wird in IIS Version 6.0 unterstützt.

Gilt für:

Weitere Informationen