SiteMapSection.DefaultProvider Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the name of the default navigation provider.
public:
property System::String ^ DefaultProvider { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("defaultProvider", DefaultValue="AspNetXmlSiteMapProvider")]
[System.Configuration.StringValidator(MinLength=1)]
public string DefaultProvider { get; set; }
[<System.Configuration.ConfigurationProperty("defaultProvider", DefaultValue="AspNetXmlSiteMapProvider")>]
[<System.Configuration.StringValidator(MinLength=1)>]
member this.DefaultProvider : string with get, set
Public Property DefaultProvider As String
The name of a provider in the Providers property or a Empty field. The default is "AspNetXmlSiteMapProvider"
.
- Attributes
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);
' Display Default Provider.
Console.WriteLine("Default Provider: {0}", _
configSection.DefaultProvider)
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.
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 |
Povratne informacije o proizvodu .NET
.NET je projekt otvorenog koda. Odaberite vezu za slanje povratnih informacija: