Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Url Property
Collapse the table of content
Expand the table of content

UrlMapping.Url Property

Gets the URL that is displayed to the user.

Namespace:  System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

[ConfigurationPropertyAttribute("url", IsRequired = true, IsKey = true)]
public string Url { get; }

Property Value

Type: System.String
The URL that is displayed to the user.

The Url property is the programmatic equivalent of the Url attribute of the add element in the urlMappings section of a configuration file.

For an example, see the UrlMapping class overview.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft