IColumnMapping.DataSetColumn 属性

定义

获取或设置 DataSet 中要映射到的列的名称。

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

属性值

DataSet 中要映射到的列的名称。 该名称不区分大小写。

示例

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

适用于