DataColumn.Table 속성

정의

열이 속한 DataTable을 가져옵니다.Gets the DataTable to which the column belongs to.

public:
 property System::Data::DataTable ^ Table { System::Data::DataTable ^ get(); };
public System.Data.DataTable Table { get; }
[System.ComponentModel.Browsable(false)]
public System.Data.DataTable Table { get; }
[System.ComponentModel.Browsable(false)]
[System.Data.DataSysDescription("DataColumnDataTableDescr")]
public System.Data.DataTable Table { get; }
member this.Table : System.Data.DataTable
Public ReadOnly Property Table As DataTable

속성 값

DataTable이 속한 DataColumn입니다.The DataTable that the DataColumn belongs to.

특성

예제

다음 예에서는 Table 속성을 통해 DataColumn의 부모 테이블을 반환 합니다.The following example returns the parent table of a DataColumn through its Table property.

private void GetTable(DataColumn column)
{
    // Get the Table of the column.
    DataTable table = column.Table;
    Console.WriteLine("columns count: " + table.Columns.Count);
    Console.WriteLine("rows count: " + table.Rows.Count);
}
Private Sub GetTable(ByVal column As DataColumn)
    ' Get the Table of the column.
    Dim table As DataTable = column.Table
    Console.WriteLine("columns", table.Columns.Count)
    Console.WriteLine("rows", table.Rows.Count)
End Sub

적용 대상

추가 정보