Edit

Share via


SiteMapDataSource.Provider Property

Definition

Gets or sets a SiteMapProvider object that is associated with the data source control.

[System.ComponentModel.Browsable(false)]
public System.Web.SiteMapProvider Provider { get; set; }

Property Value

A SiteMapProvider that is associated with the data source control; otherwise, if no provider is explicitly set, the default site map provider.

Attributes

Exceptions

The provider named by the SiteMapProvider is not available.

-or-

No default provider is configured for the site.

Remarks

Use the Provider property to specify the site map provider instance to use with the data source control. The instance can be different than the provider that is identified by the SiteMapProvider property, if set.

Applies to

Product Versions
.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

See also