DataTableMapping.DataSetTable 属性

定义

获取或设置 DataSet 中的表名。

public:
 property System::String ^ DataSetTable { System::String ^ get(); void set(System::String ^ value); };
public string DataSetTable { get; set; }
[System.Data.DataSysDescription("DataTableMapping_DataSetTable")]
public string DataSetTable { get; set; }
member this.DataSetTable : string with get, set
[<System.Data.DataSysDescription("DataTableMapping_DataSetTable")>]
member this.DataSetTable : string with get, set
Public Property DataSetTable As String

属性值

DataSet 中的表名称。

实现

属性

示例

以下示例创建 一个 DataTableMapping 对象并设置其一些属性。

public void CreateDataTableMapping()
{
    DataTableMapping mapping = new DataTableMapping();
    mapping.SourceTable = "Categories";
    mapping.DataSetTable = "DataCategories";
}
Public Sub CreateDataTableMapping()
    Dim mapping As New DataTableMapping()
    mapping.SourceTable = "Categories"
    mapping.DataSetTable = "DataCategories"
End Sub

适用于

另请参阅