SiteMapDataSourceView 類別

定義

提供 SiteMapDataSource 控制項的強型別 HierarchicalDataSourceView 物件。Provides a strongly typed HierarchicalDataSourceView object for the SiteMapDataSource control.

public ref class SiteMapDataSourceView : System::Web::UI::DataSourceView
public class SiteMapDataSourceView : System.Web.UI.DataSourceView
type SiteMapDataSourceView = class
    inherit DataSourceView
Public Class SiteMapDataSourceView
Inherits DataSourceView
繼承
SiteMapDataSourceView

備註

SiteMapDataSource 控制項可讓 ASP.NET 資料繫結控制項(例如 TreeViewMenu 控制項)系結至網站地圖資料。The SiteMapDataSource control enables ASP.NET data-bound controls, such as the TreeView and Menu controls, to bind to site map data. SiteMapDataSourceView類別是由控制項開發人員使用,但不是由網頁開發人員或在頁面程式碼中使用。The SiteMapDataSourceView class is used by controls developers but it is not used by page developers nor in page code.

SiteMapDataSource SiteMapDataSourceView 當呼叫方法時,會針對指定的階層式路徑傳回 SelectThe SiteMapDataSource returns a SiteMapDataSourceView for a specified hierarchical path when the Select method is called. 就像所有階層式資料來源 view 物件一樣,未 SiteMapDataSourceView 命名,而是由其唯一的階層式路徑來識別。Like all hierarchical data source view objects, the SiteMapDataSourceView is not named; rather, its is identified by its unique hierarchical path.

SiteMapDataSourceView是集合上的包裝函式類別 SiteMapNodeCollectionThe SiteMapDataSourceView is a wrapper class on a SiteMapNodeCollection collection. SiteMapNodeCollection類別會 IHierarchicalEnumerable 執行介面, SiteMapDataSourceView 類別會從呼叫方法傳回 SelectThe SiteMapNodeCollection class implements the IHierarchicalEnumerable interface, which the SiteMapDataSourceView class returns from a call to Select method. 因為 SiteMapDataSource 和使用 SiteMapDataSourceView SiteMapNode 物件,所以視圖會維護內部 SiteMapNodeCollection 包含它們。Because the SiteMapDataSource and SiteMapDataSourceView work with SiteMapNode objects, the view maintains an internal SiteMapNodeCollection to contain them. 此集合會使用 view 的函式來初始化,並使用 Select 方法來存取。The collection is initialized using the view's constructors and accessed with the Select method.

建構函式

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.

屬性

CanDelete

取得值,指出與目前 DataSourceView 物件關聯的 DataSourceControl 物件是否支援 ExecuteDelete(IDictionary, IDictionary) 作業。Gets a value indicating whether the DataSourceView object associated with the current DataSourceControl object supports the ExecuteDelete(IDictionary, IDictionary) operation.

(繼承來源 DataSourceView)
CanInsert

取得值,指出與目前 DataSourceView 物件關聯的 DataSourceControl 物件是否支援 ExecuteInsert(IDictionary) 作業。Gets a value indicating whether the DataSourceView object associated with the current DataSourceControl object supports the ExecuteInsert(IDictionary) operation.

(繼承來源 DataSourceView)
CanPage

取得值,指出與目前 DataSourceView 物件關聯的 DataSourceControl 物件是否支援對 ExecuteSelect(DataSourceSelectArguments) 方法擷取的資料進行分頁。Gets a value indicating whether the DataSourceView object associated with the current DataSourceControl object supports paging through the data retrieved by the ExecuteSelect(DataSourceSelectArguments) method.

(繼承來源 DataSourceView)
CanRetrieveTotalRowCount

取得值,指出與目前 DataSourceView 物件關聯的 DataSourceControl 物件是否支援擷取資料列總數,而非資料。Gets a value indicating whether the DataSourceView object associated with the current DataSourceControl object supports retrieving the total number of data rows, instead of the data.

(繼承來源 DataSourceView)
CanSort

取得值,指出與目前 DataSourceView 物件關聯的 DataSourceControl 物件是否支援對基礎資料來源的排序檢視。Gets a value indicating whether the DataSourceView object associated with the current DataSourceControl object supports a sorted view on the underlying data source.

(繼承來源 DataSourceView)
CanUpdate

取得值,指出與目前 DataSourceView 物件關聯的 DataSourceControl 物件是否支援 ExecuteUpdate(IDictionary, IDictionary, IDictionary) 作業。Gets a value indicating whether the DataSourceView object associated with the current DataSourceControl object supports the ExecuteUpdate(IDictionary, IDictionary, IDictionary) operation.

(繼承來源 DataSourceView)
Events

取得資料來源檢視的事件處理常式委派清單。Gets a list of event-handler delegates for the data source view.

(繼承來源 DataSourceView)
Name

取得資料來源檢視的名稱。Gets the name of the data source view.

(繼承來源 DataSourceView)

方法

CanExecute(String)

判斷是否可以執行指定的命令。Determines whether the specified command can be executed.

(繼承來源 DataSourceView)
Delete(IDictionary, IDictionary, DataSourceViewOperationCallback)

DataSourceView 物件表示的資料清單上,執行非同步刪除作業。Performs an asynchronous delete operation on the list of data that the DataSourceView object represents.

(繼承來源 DataSourceView)
Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
ExecuteCommand(String, IDictionary, IDictionary)

執行指定命令。Executes the specified command.

(繼承來源 DataSourceView)
ExecuteCommand(String, IDictionary, IDictionary, DataSourceViewOperationCallback)

執行指定命令。Executes the specified command.

(繼承來源 DataSourceView)
ExecuteDelete(IDictionary, IDictionary)

DataSourceView 物件表示的資料清單上,執行刪除作業。Performs a delete operation on the list of data that the DataSourceView object represents.

(繼承來源 DataSourceView)
ExecuteInsert(IDictionary)

DataSourceView 物件表示的資料清單上,執行插入作業。Performs an insert operation on the list of data that the DataSourceView object represents.

(繼承來源 DataSourceView)
ExecuteSelect(DataSourceSelectArguments)

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

ExecuteUpdate(IDictionary, IDictionary, IDictionary)

DataSourceView 物件表示的資料清單上,執行更新作業。Performs an update operation on the list of data that the DataSourceView object represents.

(繼承來源 DataSourceView)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
Insert(IDictionary, DataSourceViewOperationCallback)

DataSourceView 物件表示的資料清單上,執行非同步插入作業。Performs an asynchronous insert operation on the list of data that the DataSourceView object represents.

(繼承來源 DataSourceView)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
OnDataSourceViewChanged(EventArgs)

引發 DataSourceViewChanged 事件。Raises the DataSourceViewChanged event.

RaiseUnsupportedCapabilityError(DataSourceCapabilities)

RaiseUnsupportedCapabilitiesError(DataSourceView) 方法呼叫,以比較針對 ExecuteSelect(DataSourceSelectArguments) 作業要求的功能與檢視支援的功能。Called by the RaiseUnsupportedCapabilitiesError(DataSourceView) method to compare the capabilities requested for an ExecuteSelect(DataSourceSelectArguments) operation against those that the view supports.

(繼承來源 DataSourceView)
Select(DataSourceSelectArguments)

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

Select(DataSourceSelectArguments, DataSourceViewSelectCallback)

從基礎資料儲存區非同步取得資料清單。Gets a list of data asynchronously from the underlying data storage.

(繼承來源 DataSourceView)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)
Update(IDictionary, IDictionary, IDictionary, DataSourceViewOperationCallback)

DataSourceView 物件表示的資料清單上,執行非同步更新作業。Performs an asynchronous update operation on the list of data that the DataSourceView object represents.

(繼承來源 DataSourceView)

事件

DataSourceViewChanged

當資料來源檢視已變更時發生。Occurs when the data source view has changed.

(繼承來源 DataSourceView)

適用於

另請參閱