SiteMapDataSourceView.Select(DataSourceSelectArguments) 方法

定義

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

public:
 System::Collections::IEnumerable ^ Select(System::Web::UI::DataSourceSelectArguments ^ arguments);
public System.Collections.IEnumerable Select (System.Web.UI.DataSourceSelectArguments arguments);
override this.Select : System.Web.UI.DataSourceSelectArguments -> System.Collections.IEnumerable
Public Function Select (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.

備註

Select方法會呼叫 ExecuteSelect 方法,並傳遞 arguments 參數。The Select method calls the ExecuteSelect method, passing the arguments parameter. Select控制項開發人員會使用此方法,但網頁程式開發人員或頁面程式碼不會使用此方法。The Select method is used by controls developers but it is not used by page developers nor in page code.

適用於

另請參閱