MetaModel.GetTable Method (String)

 

Returns the metadata that is associated with the specified table.

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

public MetaTable GetTable(
	string uniqueTableName
)

Parameters

uniqueTableName
Type: System.String

The name that identifies the table in the data model.

Return Value

Type: System.Web.DynamicData.MetaTable

The metadata that describes the specified table.

Exception Condition
ArgumentException

The name was not found in the data model.

The name uniquely identifies a table in the data model and is used to generate the related URL for routing.

The following example shows how to use the GetTable(String) method to obtain the metadata for the specified table. For a complete example, see GetTable.

// Get the metatable for the table with the 
// specified table name.
mTable = model.GetTable("CustomerAddresses");

.NET Framework
Available since 3.5
Return to top
Show: