Edit

Share via


SiteMapDataSource.Provider Property

Definition

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

public:
 property System::Web::SiteMapProvider ^ Provider { System::Web::SiteMapProvider ^ get(); void set(System::Web::SiteMapProvider ^ value); };
[System.ComponentModel.Browsable(false)]
public System.Web.SiteMapProvider Provider { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.Provider : System.Web.SiteMapProvider with get, set
Public Property Provider As SiteMapProvider

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

See also