ערוך

שתף באמצעות


DataColumnMapping Constructors

Definition

Initializes a new instance of the DataColumnMapping class.

Overloads

DataColumnMapping()

Initializes a new instance of the DataColumnMapping class.

DataColumnMapping(String, String)

Initializes a new instance of the DataColumnMapping class with the specified source column name and DataSet column name to map to.

DataColumnMapping()

Source:
DataColumnMapping.cs
Source:
DataColumnMapping.cs
Source:
DataColumnMapping.cs

Initializes a new instance of the DataColumnMapping class.

public:
 DataColumnMapping();
public DataColumnMapping ();
Public Sub New ()

Examples

The following example creates a DataColumnMapping object, sets its properties, and clones it.

public void CreateDataColumnMapping()
{
    DataColumnMapping mapping = new DataColumnMapping();
    mapping.SourceColumn = "Description";
    mapping.DataSetColumn = "DataDescription";
}
Public Sub CreateDataColumnMapping()
    Dim mapping As New DataColumnMapping()
    mapping.SourceColumn = "Description"
    mapping.DataSetColumn = "DataDescription"
End Sub

See also

Applies to

DataColumnMapping(String, String)

Source:
DataColumnMapping.cs
Source:
DataColumnMapping.cs
Source:
DataColumnMapping.cs

Initializes a new instance of the DataColumnMapping class with the specified source column name and DataSet column name to map to.

public:
 DataColumnMapping(System::String ^ sourceColumn, System::String ^ dataSetColumn);
public DataColumnMapping (string? sourceColumn, string? dataSetColumn);
public DataColumnMapping (string sourceColumn, string dataSetColumn);
new System.Data.Common.DataColumnMapping : string * string -> System.Data.Common.DataColumnMapping
Public Sub New (sourceColumn As String, dataSetColumn As String)

Parameters

sourceColumn
String

The case-sensitive column name from a data source.

dataSetColumn
String

The column name, which is not case sensitive, from a DataSet to map to.

Examples

The following example creates a DataColumnMapping object, sets its properties, and clones it.

public void CreateDataColumnMapping()
{
    DataColumnMapping mapping =
        new DataColumnMapping("Description","DataDescription");
}
Public Sub CreateDataColumnMapping()
    Dim mapping As New DataColumnMapping( _
       "Description", "DataDescription")
End Sub

See also

Applies to