asp.net.ph

SiteMapSection Class

System.Web.Configuration Namespace


.NET Framework version 2.0

Defines configuration settings that are used to support the infrastructure for configuring, storing, and rendering site navigation. This class cannot be inherited.

SiteMapSection Class Members

Collapse   Constructors

Visibility Constructor Parameters
public SiteMapSection ( )

Collapse   Properties

Visibility Name Value Type Accessibility
public DefaultProvider String [ Get , Set ]
public Enabled Boolean [ Get , Set ]
public Providers ProviderSettingsCollection [ Get ]

Remarks

The SiteMapSection class provides a way to programmatically access and modify the siteMap section of a configuration file.

Example

This example demonstrates how to specify values declaratively for several attributes of the siteMap section, which can also be accessed as members of the SiteMapSection class.

The following configuration file example shows how to specify values declaratively for the siteMap section.

<system.web>
   <siteMap defaultProvider="XmlSiteMapReader" enabled="true">
      <providers>
         <clear />
         <add name="XmlSiteMapReader"
            type="XmlSiteMapProvider, System.Web, Version=1.1.3300.0,
               Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
            siteMapFile="my.sitemap"
               description="XmlSiteMapProvider that loads my.sitemap"/>
   </siteMap>
</system.web>
See Also

ASP.NET Configuration   <siteMap> Section Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph