IColumnMappingCollection Interface

 

Contains a collection of DataColumnMapping objects, and is implemented by the DataColumnMappingCollection, which is used in common by .NET Framework data providers.

Namespace:   System.Data
Assembly:  System.Data (in System.Data.dll)

public interface class IColumnMappingCollection : IList, ICollection, 
	IEnumerable

NameDescription
System_CAPS_pubpropertyCount

Gets the number of elements contained in the ICollection.(Inherited from ICollection.)

System_CAPS_pubpropertyIsFixedSize

Gets a value indicating whether the IList has a fixed size.(Inherited from IList.)

System_CAPS_pubpropertyIsReadOnly

Gets a value indicating whether the IList is read-only.(Inherited from IList.)

System_CAPS_pubpropertyIsSynchronized

Gets a value indicating whether access to the ICollection is synchronized (thread safe).(Inherited from ICollection.)

System_CAPS_pubpropertyItem[Int32]

Gets or sets the element at the specified index.(Inherited from IList.)

System_CAPS_pubpropertyItem[String^]

Gets or sets the IColumnMapping object with the specified SourceColumn name.

System_CAPS_pubpropertySyncRoot

Gets an object that can be used to synchronize access to the ICollection.(Inherited from ICollection.)

NameDescription
System_CAPS_pubmethodAdd(Object^)

Adds an item to the IList.(Inherited from IList.)

System_CAPS_pubmethodAdd(String^, String^)

Adds a ColumnMapping object to the ColumnMapping collection using the source column and DataSet column names.

System_CAPS_pubmethodClear()

Removes all items from the IList.(Inherited from IList.)

System_CAPS_pubmethodContains(Object^)

Determines whether the IList contains a specific value.(Inherited from IList.)

System_CAPS_pubmethodContains(String^)

Gets a value indicating whether the DataColumnMappingCollection contains a DataColumnMapping object with the specified source column name.

System_CAPS_pubmethodCopyTo(Array^, Int32)

Copies the elements of the ICollection to an Array, starting at a particular Array index.(Inherited from ICollection.)

System_CAPS_pubmethodGetByDataSetColumn(String^)

Gets the ColumnMapping object with the specified DataSet column name.

System_CAPS_pubmethodGetEnumerator()

Returns an enumerator that iterates through a collection.(Inherited from IEnumerable.)

System_CAPS_pubmethodIndexOf(Object^)

Determines the index of a specific item in the IList.(Inherited from IList.)

System_CAPS_pubmethodIndexOf(String^)

Gets the location of the DataColumnMapping object with the specified source column name. The name is case-sensitive.

System_CAPS_pubmethodInsert(Int32, Object^)

Inserts an item to the IList at the specified index.(Inherited from IList.)

System_CAPS_pubmethodRemove(Object^)

Removes the first occurrence of a specific object from the IList.(Inherited from IList.)

System_CAPS_pubmethodRemoveAt(Int32)

Removes the IList item at the specified index.(Inherited from IList.)

System_CAPS_pubmethodRemoveAt(String^)

Removes the IColumnMapping object with the specified SourceColumn name from the collection.

NameDescription
System_CAPS_pubmethodAsParallel()

Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.)

System_CAPS_pubmethodAsQueryable()

Overloaded. Converts an IEnumerable to an IQueryable.(Defined by Queryable.)

System_CAPS_pubmethodCast<TResult>()

Casts the elements of an IEnumerable to the specified type.(Defined by Enumerable.)

System_CAPS_pubmethodOfType<TResult>()

Filters the elements of an IEnumerable based on a specified type.(Defined by Enumerable.)

The IColumnMappingCollection interface enables an inheriting class to implement a ColumnMapping collection. For more information, see DataAdapter DataTable and DataColumn Mappings.

An application does not create an instance of the IColumnMappingCollection interface directly, but creates an instance of a class that inherits IColumnMappingCollection.

Classes that inherit IColumnMappingCollection must implement all inherited members, and typically define additional members to add provider-specific functionality. For example, the IColumnMappingCollection 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 IColumnMappingCollection interface, you should implement the following constructor:

Item

Description

ColumnMappingCollection()

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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: