SiteMapSection.DefaultProvider Property

Definition

Gets or sets the name of the default navigation provider.

[System.Configuration.ConfigurationProperty("defaultProvider", DefaultValue="AspNetXmlSiteMapProvider")]
[System.Configuration.StringValidator(MinLength=1)]
public string DefaultProvider { get; set; }

Property Value

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

Attributes

Examples

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);

Remarks

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.

Applies to

Proizvod Verzije
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1