SiteMapDataSourceView Constructor (SiteMapDataSource, String, SiteMapNodeCollection)

 

Initializes a new named instance of the SiteMapDataSourceView class, setting the internal collection of nodes to the specified node collection.

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

public SiteMapDataSourceView(
	SiteMapDataSource owner,
	string name,
	SiteMapNodeCollection collection
)

Parameters

owner
Type: System.Web.UI.WebControls.SiteMapDataSource

The SiteMapDataSource that the SiteMapDataSourceView is associated with.

name
Type: System.String

The name of the view.

collection
Type: System.Web.SiteMapNodeCollection

A SiteMapNodeCollection of nodes that the SiteMapDataSourceView provides a view of.

The SiteMapDataSourceView class is a wrapper class on a SiteMapNodeCollection object. Creating a SiteMapDataSourceView using the SiteMapDataSourceView constructor initializes the internal node collection with the SiteMapNodeCollection that is passed to the constructor.

.NET Framework
Available since 2.0
Return to top
Show: