共用方式為


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

適用於

另請參閱