SiteMapDataSourceView 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 SiteMapDataSourceView 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| 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 包裝類別。 使用SiteMapDataSourceView建構子建立 會SiteMapDataSourceView以單一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 A 節點的 A SiteMapDataSourceView 節點,提供一個視角。
備註
該 SiteMapDataSourceView 類別是物件上的 SiteMapNodeCollection 包裝類別。 使用SiteMapDataSourceView建構子建立 會SiteMapDataSourceView初始化內部節點集合,並傳遞SiteMapNodeCollection給建構子的 。