SiteMapDataSourceView Constructors

Definition

Initializes a new instance of the SiteMapDataSourceView class.

Overloads

SiteMapDataSourceView(SiteMapDataSource, String, SiteMapNode)

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

SiteMapDataSourceView(SiteMapDataSource, String, SiteMapNodeCollection)

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

SiteMapDataSourceView(SiteMapDataSource, String, SiteMapNode)

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

public:
 SiteMapDataSourceView(System::Web::UI::WebControls::SiteMapDataSource ^ owner, System::String ^ name, System::Web::SiteMapNode ^ node);
public SiteMapDataSourceView (System.Web.UI.WebControls.SiteMapDataSource owner, string name, System.Web.SiteMapNode node);
new System.Web.UI.WebControls.SiteMapDataSourceView : System.Web.UI.WebControls.SiteMapDataSource * string * System.Web.SiteMapNode -> System.Web.UI.WebControls.SiteMapDataSourceView
Public Sub New (owner As SiteMapDataSource, name As String, node As SiteMapNode)

Parameters

owner
SiteMapDataSource

The SiteMapDataSource that the SiteMapDataSourceView is associated with.

name
String

The name of the view.

node
SiteMapNode

The SiteMapNode to add to the internal SiteMapNodeCollection.

Remarks

The SiteMapDataSourceView class is a wrapper class on a SiteMapNodeCollection object. Creating a SiteMapDataSourceView using the SiteMapDataSourceView constructor initializes the internal node collection with a single SiteMapNode object. The site map structure is navigated using the node as a point of reference.

See also

Applies to

SiteMapDataSourceView(SiteMapDataSource, String, SiteMapNodeCollection)

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

public:
 SiteMapDataSourceView(System::Web::UI::WebControls::SiteMapDataSource ^ owner, System::String ^ name, System::Web::SiteMapNodeCollection ^ collection);
public SiteMapDataSourceView (System.Web.UI.WebControls.SiteMapDataSource owner, string name, System.Web.SiteMapNodeCollection collection);
new System.Web.UI.WebControls.SiteMapDataSourceView : System.Web.UI.WebControls.SiteMapDataSource * string * System.Web.SiteMapNodeCollection -> System.Web.UI.WebControls.SiteMapDataSourceView
Public Sub New (owner As SiteMapDataSource, name As String, collection As SiteMapNodeCollection)

Parameters

owner
SiteMapDataSource

The SiteMapDataSource that the SiteMapDataSourceView is associated with.

name
String

The name of the view.

collection
SiteMapNodeCollection

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

Remarks

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.

See also

Applies to