DataViewManager 类

定义

包含每个项的DataViewSettingCollection默认值DataTableDataSet

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 IBindingList
    interface IList
    interface ICollection
    interface IEnumerable
    interface ITypedList
type DataViewManager = class
    inherit MarshalByValueComponent
    interface ICollection
    interface IEnumerable
    interface IList
    interface IBindingList
    interface ITypedList
Public Class DataViewManager
Inherits MarshalByValueComponent
Implements IBindingList, IList, ITypedList
Public Class DataViewManager
Inherits MarshalByValueComponent
Implements IBindingList, ITypedList
继承
实现

构造函数

名称 说明
DataViewManager()

初始化 DataViewManager 类的新实例。

DataViewManager(DataSet)

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

属性

名称 说明
Container

获取组件的容器。

(继承自 MarshalByValueComponent)
DataSet

获取或设置与 DataSet . DataViewManager.

DataViewSettingCollectionString

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

DataViewSettings

获取中每个DataTable项的DataSet对应项DataViewSettingCollection

DesignMode

获取一个值,该值指示组件当前是否处于设计模式。

(继承自 MarshalByValueComponent)
Events

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

(继承自 MarshalByValueComponent)
Site

获取或设置组件的站点。

(继承自 MarshalByValueComponent)

方法

名称 说明
CreateDataView(DataTable)

为指定的 DataView.创建一个 DataTable

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)

CollectionChanged在向或从DataRelationCollection中删除某个DataRelation事件时引发事件。

TableCollectionChanged(Object, CollectionChangeEventArgs)

CollectionChanged在向或从DataTableCollection中删除某个DataTable事件时引发事件。

ToString()

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

(继承自 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)

基于 a PropertyDescriptor 和 a ListSortDirection对列表进行排序。

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[])

返回列表的名称。

扩展方法

名称 说明
AsParallel(IEnumerable)

启用查询的并行化。

AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryable

Cast<TResult>(IEnumerable)

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

OfType<TResult>(IEnumerable)

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

适用于

线程安全性

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

另请参阅