Export (0) Print
Expand All

SiteMapSection.DefaultProvider Property

Gets or sets the name of the default navigation provider.

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

[ConfigurationPropertyAttribute("defaultProvider", DefaultValue = "AspNetXmlSiteMapProvider")]
[StringValidatorAttribute(MinLength = )]
public string DefaultProvider { get; set; }

Property Value

Type: System.String
The name of a provider in the Providers property or a Empty field. The default is "AspNetXmlSiteMapProvider".

Navigation providers expose an API for manipulating navigation values in a common fashion. You can specify navigation providers in the providers subsection of the siteMap section of a configuration file.

The following code example demonstrates how to use the DefaultProvider property. This code example is part of a larger example provided for the SiteMapSection class.

// Display Default Provider.
Console.WriteLine("Default Provider: {0}",
  configSection.DefaultProvider);

.NET Framework

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