IColumnMapping.DataSetColumn 属性

定义

获取或设置 DataSet 中要映射到的列的名称。Gets or sets the name of the column within the DataSet to map to.

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

属性值

String

DataSet 中要映射到的列的名称。The name of the column within the DataSet to map to. 该名称不区分大小写。The name is not case sensitive.

示例

下面的示例创建派生类的实例, DataColumnMapping 并设置其属性。The following example creates an instance of the derived class, DataColumnMapping, and sets its properties.

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

适用于