Contains a collection of DataColumnMapping objects, and is implemented by the DataColumnMappingCollection, which is used in common by .NET Framework data providers.
Assembly: System.Data (in System.Data.dll)
Thetype exposes the following members.
|Count||Gets the number of elements contained in the ICollection. (Inherited from ICollection.)|
|IsFixedSize||Gets a value indicating whether the IList has a fixed size. (Inherited from IList.)|
|IsReadOnly||Gets a value indicating whether the IList is read-only. (Inherited from IList.)|
|IsSynchronized||Gets a value indicating whether access to the ICollection is synchronized (thread safe). (Inherited from ICollection.)|
|Item[Int32]||Gets or sets the element at the specified index. (Inherited from IList.)|
|Item[String]||Gets or sets the IColumnMapping object with the specified SourceColumn name.|
|SyncRoot||Gets an object that can be used to synchronize access to the ICollection. (Inherited from ICollection.)|
|Add(Object)||Adds an item to the IList. (Inherited from IList.)|
|Add(String, String)||Adds a ColumnMapping object to the ColumnMapping collection using the source column and DataSet column names.|
|Clear||Removes all items from the IList. (Inherited from IList.)|
|Contains(Object)||Determines whether the IList contains a specific value. (Inherited from IList.)|
|Contains(String)||Gets a value indicating whether the DataColumnMappingCollection contains a DataColumnMapping object with the specified source column name.|
|CopyTo||Copies the elements of the ICollection to an Array, starting at a particular Array index. (Inherited from ICollection.)|
|GetByDataSetColumn||Gets the ColumnMapping object with the specified DataSet column name.|
|GetEnumerator||Returns an enumerator that iterates through a collection. (Inherited from IEnumerable.)|
|IndexOf(Object)||Determines the index of a specific item in the IList. (Inherited from IList.)|
|IndexOf(String)||Gets the location of the DataColumnMapping object with the specified source column name. The name is case-sensitive.|
|Insert||Inserts an item to the IList at the specified index. (Inherited from IList.)|
|Remove||Removes the first occurrence of a specific object from the IList. (Inherited from IList.)|
|RemoveAt(Int32)||Removes the IList item at the specified index. (Inherited from IList.)|
|RemoveAt(String)||Removes the IColumnMapping object with the specified SourceColumn name from the collection.|
|AsParallel||Enables parallelization of a query. (Defined by ParallelEnumerable.)|
|AsQueryable||Converts an IEnumerable to an IQueryable. (Defined by Queryable.)|
|Cast<TResult>||Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)|
|OfType<TResult>||Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)|
The interface enables an inheriting class to implement a ColumnMapping collection. For more information, see DataAdapter DataTable and DataColumn Mappings (ADO.NET).
An application does not create an instance of the interface directly, but creates an instance of a class that inherits .
Classes that inherit must implement all inherited members, and typically define additional members to add provider-specific functionality. For example, the interface defines the RemoveAt method. In turn, the DataTableMappingCollection class inherits this method, and defines two additional overloads of RemoveAt.Notes to Implementers
When you inherit from the interface, you should implement the following constructor:
Creates an empty ColumnMappingCollection class.
The following example uses an instance of the derived class, DataTableMapping, to Add several DataColumnMapping objects to its ColumnMappings collection, and then displays a list of those mapped source tables. This example assumes that a DataTableMapping has already been created.
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.