DynamicDataExtensions::GetTable Method (IDynamicDataSource^)

 

Returns the MetaTable object that is associated with the specified data source control.

Namespace:   System.Web.DynamicData
Assembly:  System.Web.DynamicData (in System.Web.DynamicData.dll)

public:
[ExtensionAttribute]
static MetaTable^ GetTable(
	IDynamicDataSource^ dataSource
)

Parameters

dataSource
Type: System.Web.DynamicData::IDynamicDataSource^

The data source control.

Return Value

Type: System.Web.DynamicData::MetaTable^

The table that is associated with the specified data source control.

Exception Condition
InvalidOperationException

The EntitySetName property of dataSource is null.

-or-

The ContextType property of dataSource is null.

.NET Framework
Available since 3.5
Return to top
Show: