IColumnMapping.SourceColumn 属性

定义

获取或设置数据源中从其映射的列的名称。 该名称区分大小写。

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

属性值

数据源中列的区分大小写的名称。

示例

以下示例创建派生类 的实例, 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

适用于