DynamicDataExtensions.GetTable(IDynamicDataSource) 方法

定义

返回与指定数据源控件关联的 MetaTable 对象。Returns the MetaTable object that is associated with the specified data source control.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Web::DynamicData::MetaTable ^ GetTable(System::Web::DynamicData::IDynamicDataSource ^ dataSource);
public static System.Web.DynamicData.MetaTable GetTable (this System.Web.DynamicData.IDynamicDataSource dataSource);
static member GetTable : System.Web.DynamicData.IDynamicDataSource -> System.Web.DynamicData.MetaTable
<Extension()>
Public Function GetTable (dataSource As IDynamicDataSource) As MetaTable

参数

dataSource
IDynamicDataSource

数据源控件。The data source control.

返回

MetaTable

与指定数据源控件关联的表。The table that is associated with the specified data source control.

例外

dataSourceEntitySetName 属性为 nullThe EntitySetName property of dataSource is null.

- 或 --or- dataSourceContextType 属性为 nullThe ContextType property of dataSource is null.

适用于