MetaTable.GetTable Method (Type)

.NET Framework (current version)
 

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
)

Parameters

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.

Exception Condition
InvalidOperationException

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
Available since 4.0
Return to top
Show: