Gets a System.Data.Common.DataColumnMapping for the specified System.Data.Common.DataColumnMappingCollection, source column name, and System.Data.MissingMappingAction.
- columnMappings
- The System.Data.Common.DataColumnMappingCollection.
- sourceColumn
- The case-sensitive source column name to find.
- mappingAction
- One of the System.Data.MissingMappingAction values.
A System.Data.Common.DataColumnMapping object.
If the System.Data.Common.DataColumnMapping exists in the collection, it is returned.
If the System.Data.Common.DataColumnMapping does not exist in the collection, for a given System.Data.MissingMappingAction, the following actions occur:
Passthrough |
Creates a System.Data.Common.DataColumnMapping with the specified source column name as both the source column name and the System.Data.DataSet column name. This System.Data.Common.DataColumnMapping is not added to the collection. |
Error |
An InvalidOperationException is generated if the specified column mapping is missing. |
Ignore |
Gets a null value. |