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

适用于

另请参阅