Name
DataColumnMappingCollection
Synopsis
This class contains a collection of
DataColumnMapping
objects and is typically used
for the DataTableMapping.ColumnMappings
property.
You can look up an individual DataColumnMapping
by
index or data source column name using the indexer. You can also use
the GetByDataSetColumn( )
to retrieve a
DataColumnMapping
using the
System.Data.DataSet
name.
public sealed class DataColumnMappingCollection : MarshalByRefObject, System.Data.IColumnMappingCollection, IList, ICollection, IEnumerable { // Public Constructors public DataColumnMappingCollection( ); // Public Instance Properties public int Count{get; } // implements ICollection public DataColumnMapping this[stringSourceColumn
]{set; get; } public DataColumnMapping this[intindex
]{set; get; } // Public Static Methods public static DataColumnMapping GetColumnMappingBySchemaAction( DataColumnMappingCollectioncolumnMappings
, stringsourceColumn
, System.Data.MissingMappingActionmappingAction
); // Public Instance Methods public DataColumnMapping Add(stringsourceColumn
, stringdataSetColumn
); public int Add(objectvalue
); // implements IList public void AddRange(DataColumnMapping[ ]values
); public void Clear( ); // implements IList public bool Contains(objectvalue
); // implements IList public bool Contains(stringvalue
); // implements System.Data.IColumnMappingCollection public void CopyTo(Arrayarray
, intindex
); // implements ICollection public DataColumnMapping GetByDataSetColumn(stringvalue ...
Get ADO.NET in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.