System.Web.UI.WebControls.SiteMapDataSourceView Class

Provides a strongly typed System.Web.UI.HierarchicalDataSourceView object for the System.Web.UI.WebControls.SiteMapDataSource control.

See Also: SiteMapDataSourceView Members

Syntax

public class SiteMapDataSourceView : System.Web.UI.DataSourceView

Remarks

The System.Web.UI.WebControls.SiteMapDataSource control enables ASP.NET data-bound controls, such as the System.Web.UI.WebControls.TreeView and System.Web.UI.WebControls.Menu controls, to bind to site map data. The System.Web.UI.WebControls.SiteMapDataSourceView class is used by controls developers but it is not used by page developers nor in page code.

The System.Web.UI.WebControls.SiteMapDataSource returns a System.Web.UI.WebControls.SiteMapDataSourceView for a specified hierarchical path when the System.Web.UI.HierarchicalDataSourceView.Select method is called. Like all hierarchical data source view objects, the System.Web.UI.WebControls.SiteMapDataSourceView is not named; rather, its is identified by its unique hierarchical path.

The System.Web.UI.WebControls.SiteMapDataSourceView is a wrapper class on a System.Web.SiteMapNodeCollection collection. The System.Web.SiteMapNodeCollection class implements the System.Web.UI.IHierarchicalEnumerable interface, which the System.Web.UI.WebControls.SiteMapDataSourceView class returns from a call to Select method. Because the System.Web.UI.WebControls.SiteMapDataSource and System.Web.UI.WebControls.SiteMapDataSourceView work with System.Web.SiteMapNode objects, the view maintains an internal System.Web.SiteMapNodeCollection to contain them. The collection is initialized using the view's constructors and accessed with the SiteMapDataSourceView.Select method.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0