DynamicDataExtensions.GetTable Method (IDynamicDataSource)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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 static MetaTable GetTable(
	this 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: