SiteMapDataSourceView 建構函式

定義

初始化 SiteMapDataSourceView 類別的新執行個體。Initializes a new instance of the SiteMapDataSourceView class.

多載

SiteMapDataSourceView(SiteMapDataSource, String, SiteMapNode)

初始化 SiteMapDataSourceView 類別新的具名執行個體,會將單一指定節點加入節點的內部集合中。Initializes a new named instance of the SiteMapDataSourceView class, adding the single specified node to the internal collection of nodes.

SiteMapDataSourceView(SiteMapDataSource, String, SiteMapNodeCollection)

初始化 SiteMapDataSourceView 類別新的具名執行個體,會將節點的內部集合設定為指定的節點集合。Initializes a new named instance of the SiteMapDataSourceView class, setting the internal collection of nodes to the specified node collection.

SiteMapDataSourceView(SiteMapDataSource, String, SiteMapNode)

初始化 SiteMapDataSourceView 類別新的具名執行個體,會將單一指定節點加入節點的內部集合中。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)

參數

name
String

檢視的名稱。The name of the view.

node
SiteMapNode

要加入內部 SiteMapNodeSiteMapNodeCollectionThe SiteMapNode to add to the internal SiteMapNodeCollection.

備註

SiteMapDataSourceView類別是物件的包裝函式類別 SiteMapNodeCollectionThe SiteMapDataSourceView class is a wrapper class on a SiteMapNodeCollection object. 使用此函式建立會 SiteMapDataSourceView SiteMapDataSourceView 初始化具有單一物件的內部節點集合 SiteMapNodeCreating 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.

另請參閱

適用於

SiteMapDataSourceView(SiteMapDataSource, String, SiteMapNodeCollection)

初始化 SiteMapDataSourceView 類別新的具名執行個體,會將節點的內部集合設定為指定的節點集合。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)

參數

name
String

檢視的名稱。The name of the view.

collection
SiteMapNodeCollection

節點的 SiteMapNodeCollectionSiteMapDataSourceView 會提供其檢視。A SiteMapNodeCollection of nodes that the SiteMapDataSourceView provides a view of.

備註

SiteMapDataSourceView類別是物件的包裝函式類別 SiteMapNodeCollectionThe SiteMapDataSourceView class is a wrapper class on a SiteMapNodeCollection object. 使用函式建立 SiteMapDataSourceView 時,會使用傳遞至函式的來 SiteMapDataSourceView 初始化內部節點集合 SiteMapNodeCollectionCreating a SiteMapDataSourceView using the SiteMapDataSourceView constructor initializes the internal node collection with the SiteMapNodeCollection that is passed to the constructor.

另請參閱

適用於