共用方式為


DataColumnMapping.SourceColumn 屬性

定義

取得或設定在資料來源中的來源資料行名稱。 名稱區分大小寫。

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

屬性值

在資料來源中的資料行的區分大小寫名稱。

實作

屬性

範例

下列範例會 DataColumnMapping 建立 物件,並設定其屬性。

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

適用於

另請參閱