SiteMapDataSourceView 类

定义

提供 SiteMapDataSource 控件的强类型化 HierarchicalDataSourceView 对象 。

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 控件)绑定到站点地图数据。 类 SiteMapDataSourceView 由控件开发人员使用,但它不供页面开发人员使用,也不在页面代码中使用。

SiteMapDataSource调用 方法时Select,为指定的分层路径返回 SiteMapDataSourceView 。 与所有分层数据源视图对象一样, SiteMapDataSourceView 未命名;而是由其唯一分层路径标识。

SiteMapDataSourceView是集合上的SiteMapNodeCollection包装类。 类 SiteMapNodeCollection 实现 IHierarchicalEnumerable 接口, SiteMapDataSourceView 类从对 方法的调用 Select 返回接口。 SiteMapDataSource由于 和 SiteMapDataSourceView 适用于 SiteMapNode 对象,因此视图会维护一个内部SiteMapNodeCollection来包含它们。 集合使用视图的构造函数进行初始化,并使用 Select 方法进行访问。

构造函数

SiteMapDataSourceView(SiteMapDataSource, String, SiteMapNode)

初始化 SiteMapDataSourceView 类的新命名实例,将指定的单个节点添加到内部节点集合。

SiteMapDataSourceView(SiteMapDataSource, String, SiteMapNodeCollection)

初始化 SiteMapDataSourceView 类的新命名实例,将内部节点集合设置为指定的节点集合。

属性

CanDelete

获取一个值,该值指示与当前 DataSourceControl 对象关联的 DataSourceView 对象是否支持 ExecuteDelete(IDictionary, IDictionary) 操作。

(继承自 DataSourceView)
CanInsert

获取一个值,该值指示与当前 DataSourceControl 对象关联的 DataSourceView 对象是否支持 ExecuteInsert(IDictionary) 操作。

(继承自 DataSourceView)
CanPage

获取一个值,该值指示与当前 DataSourceControl 对象关联的 DataSourceView 对象是否支持对通过 ExecuteSelect(DataSourceSelectArguments) 方法检索到的数据进行分页。

(继承自 DataSourceView)
CanRetrieveTotalRowCount

获取一个值,该值指示与当前 DataSourceControl 对象关联的 DataSourceView 对象是否支持检索数据的总行数(而不是数据)。

(继承自 DataSourceView)
CanSort

获取一个值,该值指示与当前 DataSourceControl 对象关联的 DataSourceView 对象是否支持基础数据源的排序视图。

(继承自 DataSourceView)
CanUpdate

获取一个值,该值指示与当前 DataSourceControl 对象关联的 DataSourceView 对象是否支持 ExecuteUpdate(IDictionary, IDictionary, IDictionary) 操作。

(继承自 DataSourceView)
Events

获取数据源视图的事件处理程序委托的列表。

(继承自 DataSourceView)
Name

获取数据源视图的名称。

(继承自 DataSourceView)

方法

CanExecute(String)

确定是否能执行指定命令。

(继承自 DataSourceView)
Delete(IDictionary, IDictionary, DataSourceViewOperationCallback)

DataSourceView 对象所表示的数据列表执行异步删除操作。

(继承自 DataSourceView)
Equals(Object)

确定指定对象是否等于当前对象。

(继承自 Object)
ExecuteCommand(String, IDictionary, IDictionary)

执行指定的命令。

(继承自 DataSourceView)
ExecuteCommand(String, IDictionary, IDictionary, DataSourceViewOperationCallback)

执行指定的命令。

(继承自 DataSourceView)
ExecuteDelete(IDictionary, IDictionary)

DataSourceView 对象所表示的数据列表执行删除操作。

(继承自 DataSourceView)
ExecuteInsert(IDictionary)

DataSourceView 对象所表示的数据列表执行插入操作。

(继承自 DataSourceView)
ExecuteSelect(DataSourceSelectArguments)

获取 SiteMapNode 对象的集合,这些对象表示当前用户的站点导航结构。

ExecuteUpdate(IDictionary, IDictionary, IDictionary)

DataSourceView 对象所表示的数据列表执行更新操作。

(继承自 DataSourceView)
GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
Insert(IDictionary, DataSourceViewOperationCallback)

DataSourceView 对象所表示的数据列表执行异步插入操作。

(继承自 DataSourceView)
MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
OnDataSourceViewChanged(EventArgs)

引发 DataSourceViewChanged 事件。

RaiseUnsupportedCapabilityError(DataSourceCapabilities)

RaiseUnsupportedCapabilitiesError(DataSourceView) 方法调用,用于将 ExecuteSelect(DataSourceSelectArguments) 操作所请求的功能与视图所支持的功能进行比较。

(继承自 DataSourceView)
Select(DataSourceSelectArguments)

获取 SiteMapNode 对象的集合,这些对象表示当前用户的站点导航结构。

Select(DataSourceSelectArguments, DataSourceViewSelectCallback)

从基础数据存储中异步获取数据列表。

(继承自 DataSourceView)
ToString()

返回表示当前对象的字符串。

(继承自 Object)
Update(IDictionary, IDictionary, IDictionary, DataSourceViewOperationCallback)

DataSourceView 对象所表示的数据列表执行异步更新操作。

(继承自 DataSourceView)

事件

DataSourceViewChanged

在数据源视图更改时发生。

(继承自 DataSourceView)

适用于

另请参阅