SiteMapDataSourceView 构造函数

定义

初始化 SiteMapDataSourceView 类的新实例。

重载

名称 说明
SiteMapDataSourceView(SiteMapDataSource, String, SiteMapNode)

初始化类的新命名实例 SiteMapDataSourceView ,将单个指定节点添加到节点的内部集合。

SiteMapDataSourceView(SiteMapDataSource, String, SiteMapNodeCollection)

初始化类的新命名实例 SiteMapDataSourceView ,将节点的内部集合设置为指定的节点集合。

SiteMapDataSourceView(SiteMapDataSource, String, SiteMapNode)

初始化类的新命名实例 SiteMapDataSourceView ,将单个指定节点添加到节点的内部集合。

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)

参数

name
String

视图的名称。

node
SiteMapNode

SiteMapNode要添加到内部 SiteMapNodeCollection

注解

SiteMapDataSourceView 类是对象上的 SiteMapNodeCollection 包装类。 使用构造函数创建使用SiteMapDataSourceViewSiteMapDataSourceView单个SiteMapNode对象初始化内部节点集合。 站点地图结构使用节点作为参考点进行导航。

另请参阅

适用于

SiteMapDataSourceView(SiteMapDataSource, String, SiteMapNodeCollection)

初始化类的新命名实例 SiteMapDataSourceView ,将节点的内部集合设置为指定的节点集合。

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)

参数

name
String

视图的名称。

collection
SiteMapNodeCollection

SiteMapNodeCollection提供视图的节点SiteMapDataSourceView之一。

注解

SiteMapDataSourceView 类是对象上的 SiteMapNodeCollection 包装类。 使用构造函数创建一个 SiteMapDataSourceView 使用 SiteMapDataSourceView 传递给构造函数的内部节点集合 SiteMapNodeCollection 进行初始化。

另请参阅

适用于