This topic has not yet been rated - Rate this topic

DataViewSettingCollection Class

Contains a read-only collection of DataViewSetting objects for each DataTable in a DataSet.

System.Object
  System.Data.DataViewSettingCollection

Namespace:  System.Data
Assembly:  System.Data (in System.Data.dll)
public class DataViewSettingCollection : ICollection, 
	IEnumerable

The DataViewSettingCollection type exposes the following members.

  Name Description
Public property Supported by the XNA Framework Count Gets the number of DataViewSetting objects in the DataViewSettingCollection.
Public property Supported by the XNA Framework IsReadOnly Gets a value that indicates whether the DataViewSettingCollection is read-only.
Public property Supported by the XNA Framework IsSynchronized Gets a value that indicates whether access to the DataViewSettingCollection is synchronized (thread-safe).
Public property Supported by the XNA Framework Item[DataTable] Gets the DataViewSetting objects of the specified DataTable from the collection.
Public property Supported by the XNA Framework Item[Int32] Gets the DataViewSetting objects of the DataTable specified by its index.
Public property Supported by the XNA Framework Item[String] Gets the DataViewSetting of the DataTable specified by its name.
Public property Supported by the XNA Framework SyncRoot Gets an object that can be used to synchronize access to the DataViewSettingCollection.
Top
  Name Description
Public method Supported by the XNA Framework CopyTo(Array, Int32) Copies the collection objects to a one-dimensional Array instance starting at the specified index.
Public method Supported by the XNA Framework CopyTo(DataViewSetting[], Int32) Copies the collection objects to a one-dimensional Array instance starting at the specified index.
Public method Supported by the XNA Framework Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Supported by the XNA Framework Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Supported by the XNA Framework GetEnumerator Gets an IEnumerator for the collection.
Public method Supported by the XNA Framework GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method Supported by the XNA Framework GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method Supported by the XNA Framework MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Supported by the XNA Framework ToString Returns a string that represents the current object. (Inherited from Object.)
Top
  Name Description
Public Extension Method AsParallel Enables parallelization of a query. (Defined by ParallelEnumerable.)
Public Extension Method AsQueryable Converts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension Method Supported by the XNA Framework Cast<TResult> Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension Method Supported by the XNA Framework OfType<TResult> Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Top

A user cannot add or remove a DataViewSetting from the collection, but can change the properties of the DataViewSetting corresponding to a particular DataTable. Adding or removing a DataTable from the DataSet adds or removes the corresponding DataViewSetting from the collection.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

This type is safe for multithreaded read operations. You must synchronize any write operations.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ