共用方式為


SiteMapDataSourceView.ExecuteSelect(DataSourceSelectArguments) 方法

定義

取得 SiteMapNode 物件的集合,表示目前使用者的網站巡覽結構。

protected public:
 override System::Collections::IEnumerable ^ ExecuteSelect(System::Web::UI::DataSourceSelectArguments ^ arguments);
protected internal override System.Collections.IEnumerable ExecuteSelect (System.Web.UI.DataSourceSelectArguments arguments);
override this.ExecuteSelect : System.Web.UI.DataSourceSelectArguments -> System.Collections.IEnumerable
Protected Friend Overrides Function ExecuteSelect (arguments As DataSourceSelectArguments) As IEnumerable

參數

arguments
DataSourceSelectArguments

DataSourceSelectArguments,用於針對資料要求基本資料擷取以外的作業。

傳回

IEnumerable

SiteMapNodeCollection,表示目前使用者的網站巡覽結構。

例外狀況

傳遞給 Select(DataSourceSelectArguments)arguments 指定資料來源在擷取資料時應執行一些額外工作,來啟用分頁或排序擷取的資料,但是資料來源控制項不支援所要求的功能。

備註

SiteMapDataSourceView類別會執行繼承的 ExecuteSelect 方法,以抓取表示目前 ASP.NET 應用程式之網站導覽結構的一組節點。 頁面開發人員和資料繫結控制項作者不會直接呼叫 ExecuteSelect 方法,而是使用公開的 Select 方法。

適用於

另請參閱