DataViewManager 类

定义

DataSet 中包含每个 DataTable 的默认 DataViewSettingCollection

public ref class DataViewManager : System::ComponentModel::MarshalByValueComponent, System::Collections::IList, System::ComponentModel::IBindingList, System::ComponentModel::ITypedList
public ref class DataViewManager : System::ComponentModel::MarshalByValueComponent, System::ComponentModel::IBindingList, System::ComponentModel::ITypedList
public class DataViewManager : System.ComponentModel.MarshalByValueComponent, System.Collections.IList, System.ComponentModel.IBindingList, System.ComponentModel.ITypedList
public class DataViewManager : System.ComponentModel.MarshalByValueComponent, System.ComponentModel.IBindingList, System.ComponentModel.ITypedList
type DataViewManager = class
    inherit MarshalByValueComponent
    interface ICollection
    interface IEnumerable
    interface IList
    interface IBindingList
    interface ITypedList
type DataViewManager = class
    inherit MarshalByValueComponent
    interface IBindingList
    interface IList
    interface ICollection
    interface IEnumerable
    interface ITypedList
Public Class DataViewManager
Inherits MarshalByValueComponent
Implements IBindingList, IList, ITypedList
Public Class DataViewManager
Inherits MarshalByValueComponent
Implements IBindingList, ITypedList
继承
实现

构造函数

DataViewManager()

初始化 DataViewManager 类的新实例。

DataViewManager(DataSet)

为指定的 DataSet 初始化 DataViewManager 类的新实例。

属性

Container

获取组件的容器。

(继承自 MarshalByValueComponent)
DataSet

获取或设置要与 DataViewManager 一起使用的 DataSet

DataViewSettingCollectionString

获取或设置用于代码持久性的值。

DataViewSettings

获取 DataSet 中每个 DataTableDataViewSettingCollection

DesignMode

获取指示组件当前是否处于设计模式的值。

(继承自 MarshalByValueComponent)
Events

获取附加到该组件的事件处理程序的列表。

(继承自 MarshalByValueComponent)
Site

获取或设置组件的站点。

(继承自 MarshalByValueComponent)

方法

CreateDataView(DataTable)

为指定的 DataTable 创建 DataView

Dispose()

释放由 MarshalByValueComponent 使用的所有资源。

(继承自 MarshalByValueComponent)
Dispose(Boolean)

释放由 MarshalByValueComponent 占用的非托管资源,还可以另外再释放托管资源。

(继承自 MarshalByValueComponent)
Equals(Object)

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

(继承自 Object)
GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetService(Type)

获取 IServiceProvider 的实施者。

(继承自 MarshalByValueComponent)
GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
OnListChanged(ListChangedEventArgs)

引发 ListChanged 事件。

RelationCollectionChanged(Object, CollectionChangeEventArgs)

DataRelationCollection 中添加或移除 DataRelation 时引发 CollectionChanged 事件。

TableCollectionChanged(Object, CollectionChangeEventArgs)

DataTableCollection 中添加或移除 DataTable 时引发 CollectionChanged 事件。

ToString()

返回包含 Component 的名称的 String(如果有)。 不应重写此方法。

(继承自 MarshalByValueComponent)

事件

Disposed

添加用于侦听组件的 Disposed 事件的事件处理程序。

(继承自 MarshalByValueComponent)
ListChanged

在将行添加到 DataView 或从中删除行之后发生。

显式接口实现

IBindingList.AddIndex(PropertyDescriptor)

PropertyDescriptor 添加到用于搜索的索引。

IBindingList.AddNew()

有关此成员的说明,请参见 AddNew()

IBindingList.AllowEdit

有关此成员的说明,请参见 AllowEdit

IBindingList.AllowNew

有关此成员的说明,请参见 AllowNew

IBindingList.AllowRemove

有关此成员的说明,请参见 AllowRemove

IBindingList.ApplySort(PropertyDescriptor, ListSortDirection)

根据 PropertyDescriptorListSortDirection 对列表进行排序。

IBindingList.Find(PropertyDescriptor, Object)

返回具有给定 PropertyDescriptor 的行的索引。

IBindingList.IsSorted

有关此成员的说明,请参见 IsSorted

IBindingList.RemoveIndex(PropertyDescriptor)

PropertyDescriptor 从用于搜索的索引中移除。

IBindingList.RemoveSort()

使用 ApplySort(PropertyDescriptor, ListSortDirection) 移除任何已应用的排序。

IBindingList.SortDirection

有关此成员的说明,请参见 SortDirection

IBindingList.SortProperty

有关此成员的说明,请参见 SortProperty

IBindingList.SupportsChangeNotification

有关此成员的说明,请参见 SupportsChangeNotification

IBindingList.SupportsSearching

有关此成员的说明,请参见 SupportsSearching

IBindingList.SupportsSorting

有关此成员的说明,请参见 SupportsSorting

ICollection.CopyTo(Array, Int32)

从特定的 ICollection 索引开始,将 Array 的元素复制到一个 Array 中。

ICollection.Count

有关此成员的说明,请参见 Count

ICollection.IsSynchronized

有关此成员的说明,请参见 IsSynchronized

ICollection.SyncRoot

有关此成员的说明,请参见 SyncRoot

IEnumerable.GetEnumerator()

有关此成员的说明,请参见 GetEnumerator()

IList.Add(Object)

将某项添加到 IList 中。

IList.Clear()

有关此成员的说明,请参见 Clear()

IList.Contains(Object)

确定 IList 是否包含特定值。

IList.IndexOf(Object)

确定 IList 中特定项的索引。

IList.Insert(Int32, Object)

IList 中的指定索引处插入一个项。

IList.IsFixedSize

有关此成员的说明,请参见 IsFixedSize

IList.IsReadOnly

有关此成员的说明,请参见 IsReadOnly

IList.Item[Int32]

获取或设置指定索引处的元素。

IList.Remove(Object)

IList 中移除特定对象的第一个匹配项。

IList.RemoveAt(Int32)

移除位于指定索引处的 IList 项。

ITypedList.GetItemProperties(PropertyDescriptor[])

返回 PropertyDescriptorCollection,其表示每一项上用于绑定数据的属性。

ITypedList.GetListName(PropertyDescriptor[])

返回列表名称。

扩展方法

Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定的类型。

OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。

AsParallel(IEnumerable)

启用查询的并行化。

AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryable

适用于

线程安全性

此类型对于多线程读取操作是安全的。 必须同步任何写入操作。

另请参阅