Bagikan melalui


IColumnMapping.SourceColumn Properti

Definisi

Mendapatkan atau mengatur nama kolom dalam sumber data untuk dipetakan. Namanya peka huruf besar/kecil.

public:
 property System::String ^ SourceColumn { System::String ^ get(); void set(System::String ^ value); };
public string SourceColumn { get; set; }
member this.SourceColumn : string with get, set
Public Property SourceColumn As String

Nilai Properti

Nama kolom yang peka huruf besar/kecil di sumber data.

Contoh

Contoh berikut membuat instans kelas turunan, DataColumnMapping, dan mengatur propertinya.

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

Berlaku untuk