This documentation is archived and is not being maintained.

MetaTable.GetTable Method

Retrieves the metatable that is associated with the specified type.

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

public static MetaTable GetTable(
	Type entityType


Type: System.Type
The type of the entity.

Return Value

Type: System.Web.DynamicData.MetaTable
The metatable that is associated with the specified type.


The TryGetTable(Type, MetaTable) method that was called by this method returned false.

This method calls TryGetTable(Type, MetaTable). If TryGetTable(Type, MetaTable) returns false, an InvalidOperationException exception is thrown.

.NET Framework

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.