DataViewManager DataViewManager DataViewManager DataViewManager Class

定义

DataSet 中包含每个 DataTable 的默认 DataViewSettingCollectionContains a default DataViewSettingCollection for each DataTable in a DataSet.

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

构造函数

DataViewManager() DataViewManager() DataViewManager() DataViewManager()

初始化 DataViewManager 类的新实例。Initializes a new instance of the DataViewManager class.

DataViewManager(DataSet) DataViewManager(DataSet) DataViewManager(DataSet) DataViewManager(DataSet)

为指定的 DataSet 初始化 DataViewManager 类的新实例。Initializes a new instance of the DataViewManager class for the specified DataSet.

属性

Container Container Container Container

获取组件的容器。Gets the container for the component.

(Inherited from MarshalByValueComponent)
DataSet DataSet DataSet DataSet

获取或设置要与 DataViewManager 一起使用的 DataSetGets or sets the DataSet to use with the DataViewManager.

DataViewSettingCollectionString DataViewSettingCollectionString DataViewSettingCollectionString DataViewSettingCollectionString

获取或设置用于代码持久性的值。Gets or sets a value that is used for code persistence.

DataViewSettings DataViewSettings DataViewSettings DataViewSettings

获取 DataSet 中每个 DataTableDataViewSettingCollectionGets the DataViewSettingCollection for each DataTable in the DataSet.

DesignMode DesignMode DesignMode DesignMode

获取指示组件当前是否处于设计模式的值。Gets a value indicating whether the component is currently in design mode.

(Inherited from MarshalByValueComponent)
Events Events Events Events

获取附加到该组件的事件处理程序的列表。Gets the list of event handlers that are attached to this component.

(Inherited from MarshalByValueComponent)
Site Site Site Site

获取或设置组件的位置。Gets or sets the site of the component.

(Inherited from MarshalByValueComponent)

方法

CreateDataView(DataTable) CreateDataView(DataTable) CreateDataView(DataTable) CreateDataView(DataTable)

为指定的 DataTable 创建 DataViewCreates a DataView for the specified DataTable.

Dispose() Dispose() Dispose() Dispose()

释放由 MarshalByValueComponent 使用的所有资源。Releases all resources used by the MarshalByValueComponent.

(Inherited from MarshalByValueComponent)
Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

释放由 MarshalByValueComponent 占用的非托管资源,还可以另外再释放托管资源。Releases the unmanaged resources used by the MarshalByValueComponent and optionally releases the managed resources.

(Inherited from MarshalByValueComponent)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetService(Type) GetService(Type) GetService(Type) GetService(Type)

获取 IServiceProvider 的实施者。Gets the implementer of the IServiceProvider.

(Inherited from MarshalByValueComponent)
GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
OnListChanged(ListChangedEventArgs) OnListChanged(ListChangedEventArgs) OnListChanged(ListChangedEventArgs) OnListChanged(ListChangedEventArgs)

引发 ListChanged 事件。Raises the ListChanged event.

RelationCollectionChanged(Object, CollectionChangeEventArgs) RelationCollectionChanged(Object, CollectionChangeEventArgs) RelationCollectionChanged(Object, CollectionChangeEventArgs) RelationCollectionChanged(Object, CollectionChangeEventArgs)

DataRelationCollection 中添加或移除 DataRelation 时引发 CollectionChanged 事件。Raises a CollectionChanged event when a DataRelation is added to or removed from the DataRelationCollection.

TableCollectionChanged(Object, CollectionChangeEventArgs) TableCollectionChanged(Object, CollectionChangeEventArgs) TableCollectionChanged(Object, CollectionChangeEventArgs) TableCollectionChanged(Object, CollectionChangeEventArgs)

DataTableCollection 中添加或移除 DataTable 时引发 CollectionChanged 事件。Raises a CollectionChanged event when a DataTable is added to or removed from the DataTableCollection.

ToString() ToString() ToString() ToString()

返回包含 Component 的名称的 String(如果有)。Returns a String containing the name of the Component, if any. 不应重写此方法。This method should not be overridden.

(Inherited from MarshalByValueComponent)

事件

Disposed Disposed Disposed Disposed

添加事件处理程序以侦听组件上的 Disposed 事件。Adds an event handler to listen to the Disposed event on the component.

(Inherited from MarshalByValueComponent)
ListChanged ListChanged ListChanged ListChanged

在将行添加到 DataView 或从中删除行之后发生。Occurs after a row is added to or deleted from a DataView.

显式界面实现

IBindingList.AddIndex(PropertyDescriptor) IBindingList.AddIndex(PropertyDescriptor) IBindingList.AddIndex(PropertyDescriptor) IBindingList.AddIndex(PropertyDescriptor)

PropertyDescriptor 添加到用于搜索的索引。Adds the PropertyDescriptor to the indexes used for searching.

IBindingList.AddNew() IBindingList.AddNew() IBindingList.AddNew() IBindingList.AddNew()

有关此成员的说明,请参见 AddNew()For a description of this member, see AddNew().

IBindingList.AllowEdit IBindingList.AllowEdit IBindingList.AllowEdit IBindingList.AllowEdit

有关此成员的说明,请参见 AllowEditFor a description of this member, see AllowEdit.

IBindingList.AllowNew IBindingList.AllowNew IBindingList.AllowNew IBindingList.AllowNew

有关此成员的说明,请参见 AllowNewFor a description of this member, see AllowNew.

IBindingList.AllowRemove IBindingList.AllowRemove IBindingList.AllowRemove IBindingList.AllowRemove

有关此成员的说明,请参见 AllowRemoveFor a description of this member, see AllowRemove.

IBindingList.ApplySort(PropertyDescriptor, ListSortDirection) IBindingList.ApplySort(PropertyDescriptor, ListSortDirection) IBindingList.ApplySort(PropertyDescriptor, ListSortDirection) IBindingList.ApplySort(PropertyDescriptor, ListSortDirection)

根据 PropertyDescriptorListSortDirection 对列表进行排序。Sorts the list based on a PropertyDescriptor and a ListSortDirection.

IBindingList.Find(PropertyDescriptor, Object) IBindingList.Find(PropertyDescriptor, Object) IBindingList.Find(PropertyDescriptor, Object) IBindingList.Find(PropertyDescriptor, Object)

返回具有给定 PropertyDescriptor 的行的索引。Returns the index of the row that has the given PropertyDescriptor.

IBindingList.IsSorted IBindingList.IsSorted IBindingList.IsSorted IBindingList.IsSorted

有关此成员的说明,请参见 IsSortedFor a description of this member, see IsSorted.

IBindingList.RemoveIndex(PropertyDescriptor) IBindingList.RemoveIndex(PropertyDescriptor) IBindingList.RemoveIndex(PropertyDescriptor) IBindingList.RemoveIndex(PropertyDescriptor)

PropertyDescriptor 从用于搜索的索引中移除。Removes the PropertyDescriptor from the indexes used for searching.

IBindingList.RemoveSort() IBindingList.RemoveSort() IBindingList.RemoveSort() IBindingList.RemoveSort()

使用 ApplySort(PropertyDescriptor, ListSortDirection) 移除任何已应用的排序。Removes any sort applied using ApplySort(PropertyDescriptor, ListSortDirection).

IBindingList.SortDirection IBindingList.SortDirection IBindingList.SortDirection IBindingList.SortDirection

有关此成员的说明,请参见 SortDirectionFor a description of this member, see SortDirection.

IBindingList.SortProperty IBindingList.SortProperty IBindingList.SortProperty IBindingList.SortProperty

有关此成员的说明,请参见 SortPropertyFor a description of this member, see SortProperty.

IBindingList.SupportsChangeNotification IBindingList.SupportsChangeNotification IBindingList.SupportsChangeNotification IBindingList.SupportsChangeNotification

有关此成员的说明,请参见 SupportsChangeNotificationFor a description of this member, see SupportsChangeNotification.

IBindingList.SupportsSearching IBindingList.SupportsSearching IBindingList.SupportsSearching IBindingList.SupportsSearching

有关此成员的说明,请参见 SupportsSearchingFor a description of this member, see SupportsSearching.

IBindingList.SupportsSorting IBindingList.SupportsSorting IBindingList.SupportsSorting IBindingList.SupportsSorting

有关此成员的说明,请参见 SupportsSortingFor a description of this member, see SupportsSorting.

ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32)

从特定的 ICollection 索引开始,将 Array 的元素复制到一个 Array 中。Copies the elements of the ICollection to an Array, starting at a particular Array index.

ICollection.Count ICollection.Count ICollection.Count ICollection.Count

有关此成员的说明,请参见 CountFor a description of this member, see Count.

ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized

有关此成员的说明,请参见 IsSynchronizedFor a description of this member, see IsSynchronized.

ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot

有关此成员的说明,请参见 SyncRootFor a description of this member, see SyncRoot.

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

有关此成员的说明,请参见 GetEnumerator()For a description of this member, see GetEnumerator().

IList.Add(Object) IList.Add(Object) IList.Add(Object) IList.Add(Object)

将某项添加到 IList 中。Adds an item to the IList.

IList.Clear() IList.Clear() IList.Clear() IList.Clear()

有关此成员的说明,请参见 Clear()For a description of this member, see Clear().

IList.Contains(Object) IList.Contains(Object) IList.Contains(Object) IList.Contains(Object)

确定 IList 是否包含特定值。Determines whether the IList contains a specific value.

IList.IndexOf(Object) IList.IndexOf(Object) IList.IndexOf(Object) IList.IndexOf(Object)

确定 IList 中特定项的索引。Determines the index of a specific item in the IList.

IList.Insert(Int32, Object) IList.Insert(Int32, Object) IList.Insert(Int32, Object) IList.Insert(Int32, Object)

IList 中的指定索引处插入一个项。Inserts an item to the IList at the specified index.

IList.IsFixedSize IList.IsFixedSize IList.IsFixedSize IList.IsFixedSize

有关此成员的说明,请参见 IsFixedSizeFor a description of this member, see IsFixedSize.

IList.IsReadOnly IList.IsReadOnly IList.IsReadOnly IList.IsReadOnly

有关此成员的说明,请参见 IsReadOnlyFor a description of this member, see IsReadOnly.

IList.Item[Int32] IList.Item[Int32] IList.Item[Int32] IList.Item[Int32]

获取或设置指定索引处的元素。Gets or sets the element at the specified index.

IList.Remove(Object) IList.Remove(Object) IList.Remove(Object) IList.Remove(Object)

IList 中移除特定对象的第一个匹配项。Removes the first occurrence of a specific object from the IList.

IList.RemoveAt(Int32) IList.RemoveAt(Int32) IList.RemoveAt(Int32) IList.RemoveAt(Int32)

移除位于指定索引处的 IList 项。Removes the IList item at the specified index.

ITypedList.GetItemProperties(PropertyDescriptor[]) ITypedList.GetItemProperties(PropertyDescriptor[]) ITypedList.GetItemProperties(PropertyDescriptor[]) ITypedList.GetItemProperties(PropertyDescriptor[])

返回 PropertyDescriptorCollection,其表示每一项上用于绑定数据的属性。Returns the PropertyDescriptorCollection that represents the properties on each item used to bind data.

ITypedList.GetListName(PropertyDescriptor[]) ITypedList.GetListName(PropertyDescriptor[]) ITypedList.GetListName(PropertyDescriptor[]) ITypedList.GetListName(PropertyDescriptor[])

返回列表名称。Returns the name of the list.

扩展方法

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

启用查询的并行化。Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于

线程安全性

此类型是安全的多线程读取操作。This type is safe for multithreaded read operations. 你必须同步的任何写入操作。You must synchronize any write operations.

另请参阅