ITableMapping.ColumnMappings Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the derived DataColumnMappingCollection for the DataTable.
public:
property System::Data::IColumnMappingCollection ^ ColumnMappings { System::Data::IColumnMappingCollection ^ get(); };
public System.Data.IColumnMappingCollection ColumnMappings { get; }
member this.ColumnMappings : System.Data.IColumnMappingCollection
Public ReadOnly Property ColumnMappings As IColumnMappingCollection
Property Value
A collection of data column mappings.
Examples
The following example creates an instance of the derived class, DataTableMapping, sets some of its properties, and copies its ColumnMappings to an array. This example assumes that a DataColumnMappingCollection has been created.
public void CreateDataTableMapping()
{
// ...
// create mappings
// ...
DataColumnMapping[] columns = {};
// Copy mappings to array
mappings.CopyTo(columns, 0);
DataTableMapping mapping =
new DataTableMapping("Categories", "DataCategories", columns);
}
Public Sub CreateDataTableMapping()
' ...
' create mappings
' ...
Dim columns() As DataColumnMapping
' Copy mappings to array
mappings.CopyTo(columns, 0)
Dim mapping As New DataTableMapping _
("Categories", "DataCategories", columns)
End Sub
Applies to
Samarbeid med oss på GitHub
Du finner kilden for dette innholdet på GitHub. Der du også kan opprette og se gjennom problemer og pull-forespørsler. Hvis du vil ha mer informasjon, kan du se vår bidragsyterveiledning.