SiteMapHierarchicalDataSourceView Constructor (SiteMapNode)

Initializes a new instance of the SiteMapHierarchicalDataSourceView class, adding the specified node to the IHierarchicalEnumerable collection that the data source view maintains.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public SiteMapHierarchicalDataSourceView(
	SiteMapNode node
)

Parameters

node
Type: System.Web.SiteMapNode

A SiteMapNode that the data source view represents.

The SiteMapHierarchicalDataSourceView class maintains an internal SiteMapNodeCollection collection of nodes. When the SiteMapHierarchicalDataSourceView constructor is used, the specified node is added to the collection. A call to the Select method will return this collection of one element.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft