Export (0) Print
Expand All

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)

type DataViewSettingCollection =  
    class 
        interface ICollection 
        interface IEnumerable 
    end

The DataViewSettingCollection type exposes the following members.

  NameDescription
Public propertySupported by the XNA FrameworkCountGets the number of DataViewSetting objects in the DataViewSettingCollection.
Public propertySupported by the XNA FrameworkIsReadOnlyGets a value that indicates whether the DataViewSettingCollection is read-only.
Public propertySupported by the XNA FrameworkIsSynchronizedGets a value that indicates whether access to the DataViewSettingCollection is synchronized (thread-safe).
Public propertySupported by the XNA FrameworkItem(DataTable)Gets the DataViewSetting objects of the specified DataTable from the collection.
Public propertySupported by the XNA FrameworkItem(Int32)Gets the DataViewSetting objects of the DataTable specified by its index.
Public propertySupported by the XNA FrameworkItem(String)Gets the DataViewSetting of the DataTable specified by its name.
Public propertySupported by the XNA FrameworkSyncRootGets an object that can be used to synchronize access to the DataViewSettingCollection.
Top

  NameDescription
Public methodSupported by the XNA FrameworkCopyTo(Array, Int32)Copies the collection objects to a one-dimensional Array instance starting at the specified index.
Public methodSupported by the XNA FrameworkCopyTo(DataViewSetting[], Int32)Copies the collection objects to a one-dimensional Array instance starting at the specified index.
Public methodSupported by the XNA FrameworkEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodSupported by the XNA FrameworkFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodSupported by the XNA FrameworkGetEnumeratorGets an IEnumerator for the collection.
Public methodSupported by the XNA FrameworkGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodSupported by the XNA FrameworkGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by the XNA FrameworkMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by the XNA FrameworkToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public Extension MethodAsParallelEnables parallelization of a query. (Defined by ParallelEnumerable.)
Public Extension MethodAsQueryableConverts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension MethodSupported by the XNA FrameworkCast(TResult)Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension MethodSupported by the XNA FrameworkOfType(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.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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.

Show:
© 2014 Microsoft