DataViewSettingCollection DataViewSettingCollection DataViewSettingCollection DataViewSettingCollection Class

定义

包含 DataViewSetting 中每个 DataTableDataSet 对象的只读集合。Contains a read-only collection of DataViewSetting objects for each DataTable in a DataSet.

public ref class DataViewSettingCollection : System::Collections::ICollection
[System.Serializable]
public class DataViewSettingCollection : System.Collections.ICollection
type DataViewSettingCollection = class
    interface ICollection
    interface IEnumerable
Public Class DataViewSettingCollection
Implements ICollection
继承
DataViewSettingCollectionDataViewSettingCollectionDataViewSettingCollectionDataViewSettingCollection
属性
实现

注解

用户无法在集合DataViewSetting中添加或移除, 但是可以将相应的DataViewSetting属性更改为特定DataTable的。A user cannot add or remove a DataViewSetting from the collection, but can change the properties of the DataViewSetting corresponding to a particular DataTable. 添加或删除DataTable数据集的将从集合中添加或DataViewSetting移除相应的。Adding or removing a DataTable from the DataSet adds or removes the corresponding DataViewSetting from the collection.

属性

Count Count Count Count

获取 DataViewSetting 中的 DataViewSettingCollection 对象数。Gets the number of DataViewSetting objects in the DataViewSettingCollection.

IsReadOnly IsReadOnly IsReadOnly IsReadOnly

获取一个值,该值指示 DataViewSettingCollection 是否为只读。Gets a value that indicates whether the DataViewSettingCollection is read-only.

IsSynchronized IsSynchronized IsSynchronized IsSynchronized

获取一个值,该值指示是否同步对 DataViewSettingCollection 的访问(线程安全)。Gets a value that indicates whether access to the DataViewSettingCollection is synchronized (thread-safe).

Item[DataTable] Item[DataTable] Item[DataTable] Item[DataTable]

获取集合中指定 DataViewSettingDataTable 对象。Gets the DataViewSetting objects of the specified DataTable from the collection.

Item[Int32] Item[Int32] Item[Int32] Item[Int32]

获取 DataViewSettingDataTable 对象(由其索引指定)。Gets the DataViewSetting objects of the DataTable specified by its index.

Item[String] Item[String] Item[String] Item[String]

获取 DataViewSettingDataTable(由其名称指定)。Gets the DataViewSetting of the DataTable specified by its name.

SyncRoot SyncRoot SyncRoot SyncRoot

获取可用于同步对 DataViewSettingCollection 的访问的对象。Gets an object that can be used to synchronize access to the DataViewSettingCollection.

方法

CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32)

从指定的索引处开始,将集合对象复制到一维 Array 实例中。Copies the collection objects to a one-dimensional Array instance starting at the specified index.

CopyTo(DataViewSetting[], Int32) CopyTo(DataViewSetting[], Int32) CopyTo(DataViewSetting[], Int32) CopyTo(DataViewSetting[], Int32)

从指定的索引处开始,将集合对象复制到一维 Array 实例中。Copies the collection objects to a one-dimensional Array instance starting at the specified index.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

获取集合的 IEnumeratorGets an IEnumerator for the collection.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

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

(Inherited from Object)
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)
ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

扩展方法

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.