DynamicDataExtensions.GetTable(IDynamicDataSource) 方法
定义
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.
返回
与指定数据源控件关联的表。The table that is associated with the specified data source control.
例外
dataSource 的 EntitySetName 属性为 null。The EntitySetName property of dataSource is null.
- 或 --or-
dataSource 的 ContextType 属性为 null。The ContextType property of dataSource is null.