ערוך

שתף באמצעות


SiteMapSection.DefaultProvider Property

Definition

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

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