Bagikan melalui


DataRelation.DataSet Properti

Definisi

Mendapatkan yang DataSet seharusnya DataRelation .

public:
 virtual property System::Data::DataSet ^ DataSet { System::Data::DataSet ^ get(); };
[System.ComponentModel.Browsable(false)]
public virtual System.Data.DataSet? DataSet { get; }
[System.ComponentModel.Browsable(false)]
public virtual System.Data.DataSet DataSet { get; }
[<System.ComponentModel.Browsable(false)>]
member this.DataSet : System.Data.DataSet
Public Overridable ReadOnly Property DataSet As DataSet

Nilai Properti

A DataSet yang seharusnya DataRelation .

Atribut

Contoh

Contoh berikut mendapatkan DataSet dari DataRelation.

Private Sub GetRelDataSet(relation As DataRelation)
    ' Get the DataSet of the passed in DataRelation.
    Dim dataSet As DataSet = relation.DataSet

    ' Print the table names of each table in the DataSet.
    Dim table As DataTable
    For Each table In dataSet.Tables
        Console.WriteLine(table.TableName.ToString())
    Next
End Sub

Keterangan

Yang DataRelationCollection terkait dengan DataSet diakses melalui Relations properti DataSet objek .

Berlaku untuk

Lihat juga