SiteMapDataSourceView.ExecuteSelect(DataSourceSelectArguments) 方法

定義

取得 SiteMapNode 物件的集合,表示目前使用者的網站巡覽結構。Gets the collection of the SiteMapNode objects that represents the site navigation structure for the current user.

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,用於針對資料要求基本資料擷取以外的作業。A DataSourceSelectArguments that is used to request operations on the data beyond basic data retrieval.

傳回

IEnumerable

SiteMapNodeCollection,表示目前使用者的網站巡覽結構。A SiteMapNodeCollection that represents the site navigation structure for the current user.

例外狀況

傳遞給 Select(DataSourceSelectArguments)arguments 指定資料來源在擷取資料時應執行一些額外工作,來啟用分頁或排序擷取的資料,但是資料來源控制項不支援所要求的功能。The arguments passed to the Select(DataSourceSelectArguments) specify that the data source should perform some additional work while retrieving data to enable paging or sorting through the retrieved data, but the data source control does not support the requested capability.

備註

SiteMapDataSourceView類別會執行繼承的 ExecuteSelect 方法,以抓取表示目前 ASP.NET 應用程式之網站導覽結構的一組節點。The SiteMapDataSourceView class implements the inherited ExecuteSelect method to retrieve a set of nodes that represents the site navigation structure for the current ASP.NET application. 頁面開發人員和資料繫結控制項作者不會直接呼叫 ExecuteSelect 方法,而是使用公開的 Select 方法。Page developers and data-bound control authors do not call the ExecuteSelect method directly; instead, use the publicly exposed Select method.

適用於

另請參閱