System.Web 2.0.0.0 System.Configuration.ConfigurationElement

The class allows you to map a URL that is displayed to users to a URL that exists in your Web application. Adding a object to a is the programmatic equivalent to including an add element in the urlMappings section of a configuration file.

Each object contains two properties identifying a URL. One property specifies the URL shown to the user; the other specifies a URL in your Web application. Trailing white-space characters are ignored in both the and properties.

The property can write information into the related section of the configuration file according to the restrictions defined by the section property whose value is . Any attempt to write in a configuration file at a level not allowed in the hierarchy will result in an error message generated by the parser. However, you can use this class to read configuration information at any level in the hierarchy.

Maps a URL that is displayed to users to the URL of a page in your Web application. This class cannot be inherited.

- Constructor

  The constructor is intended primarily for internal use by ASP.NET. You do not need to derive from this class, and because it can be used to modify the Web.config file, you will probably never need to use it in code.

  Initializes a new instance of the class.

  The URL to be displayed to the user.
  A URL that exists in your Web application.
  2.0.0.0
- Property
  System.Configuration.ConfigurationProperty("mappedUrl", Options=System.Configuration.ConfigurationPropertyOptions.IsRequired)
  System.String To be added.

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

  When using IIS 5.0, if you use the property to map from a supported page type (such as an .aspx file) to an unsupported page type (such as an .asp page), an error will occur. This type of mapping is supported in IIS version 6.0.

  A URL in your Web application.

  2.0.0.0
- Property
  System.Configuration.ConfigurationPropertyCollection To be added. To be added. To be added. 2.0.0.0
- Property
  System.Configuration.ConfigurationProperty("url", Options=System.Configuration.ConfigurationPropertyOptions.IsRequired | System.Configuration.ConfigurationPropertyOptions.IsKey)
  System.String To be added.

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

  Gets the URL that is displayed to the user.

  2.0.0.0