DataRow.Table 属性  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取该行拥有其架构的 DataTable。
public:
 property System::Data::DataTable ^ Table { System::Data::DataTable ^ get(); };public System.Data.DataTable Table { get; }member this.Table : System.Data.DataTablePublic ReadOnly Property Table As DataTable属性值
该行所属的 DataTable。
示例
以下示例使用 Table 属性返回对 的列集合的 DataTable引用。
private void GetTable(DataRow row)
{
    // Get the DataTable of a DataRow
    DataTable table = row.Table;
    // Print the DataType of each column in the table.
    foreach(DataColumn column in table.Columns)
    {
        Console.WriteLine(column.DataType);
    }
}
Private Sub GetTable(ByVal row As DataRow)
   ' Get the DataTable of a DataRow
   Dim table As DataTable = row.Table
   ' Print the DataType of each column in the table.
   Dim column As DataColumn
   For Each column in table.Columns
      Console.WriteLine(column.DataType)
   Next
End Sub
注解
不 DataRow 一定属于任何表的行集合。 当 DataRow 已创建 但未添加到 时, DataRowCollection将发生此行为。 
              RowState如果 属性返回 DataRowState.Detached,则行不在任何集合中。