Bagikan melalui


DataTableMapping.DataSetTable Properti

Definisi

Mendapatkan atau mengatur nama tabel dari 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

Nilai Properti

Nama tabel dari DataSet.

Penerapan

Atribut

Contoh

Contoh berikut membuat DataTableMapping objek dan mengatur beberapa propertinya.

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

Berlaku untuk

Lihat juga