Bagikan melalui


DataColumnMapping.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; }
[System.Data.DataSysDescription("DataColumnMapping_SourceColumn")]
public string SourceColumn { get; set; }
member this.SourceColumn : string with get, set
[<System.Data.DataSysDescription("DataColumnMapping_SourceColumn")>]
member this.SourceColumn : string with get, set
Public Property SourceColumn As String

Nilai Properti

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

Penerapan

Atribut

Contoh

Contoh berikut membuat DataColumnMapping objek, 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

Lihat juga