DataColumnMapping.DataSetColumn 属性

定义

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

public:
 property System::String ^ DataSetColumn { System::String ^ get(); void set(System::String ^ value); };
public string DataSetColumn { get; set; }
[System.Data.DataSysDescription("DataColumnMapping_DataSetColumn")]
public string DataSetColumn { get; set; }
member this.DataSetColumn : string with get, set
[<System.Data.DataSysDescription("DataColumnMapping_DataSetColumn")>]
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

适用于

另请参阅