MetaModel.TryGetTable Method

Definition

Attempts to get the metadata that is associated with the specified table.

Overloads

TryGetTable(String, MetaTable)

Attempts to get the metadata that is associated with the specified table.

TryGetTable(Type, MetaTable)

Attempts to get the metadata that is associated with the specified table.

TryGetTable(String, MetaTable)

Attempts to get the metadata that is associated with the specified table.

public:
 bool TryGetTable(System::String ^ uniqueTableName, [Runtime::InteropServices::Out] System::Web::DynamicData::MetaTable ^ % table);
public bool TryGetTable (string uniqueTableName, out System.Web.DynamicData.MetaTable table);
member this.TryGetTable : string * MetaTable -> bool
Public Function TryGetTable (uniqueTableName As String, ByRef table As MetaTable) As Boolean

Parameters

uniqueTableName
String

The name that uniquely identifies the table.

table
MetaTable

When this method returns, and if it has found the requested table, contains the metadata for that table. This parameter is passed uninitialized.

Returns

true if the table metadata is found; otherwise false.

Exceptions

uniqueTableName is null.

Remarks

This method gets the metadata that is associated with the specified table. If the table is not found, this method returns false. This differs from the GetTable method, which throws an exception if the table is not found.

Applies to

TryGetTable(Type, MetaTable)

Attempts to get the metadata that is associated with the specified table.

public:
 bool TryGetTable(Type ^ entityType, [Runtime::InteropServices::Out] System::Web::DynamicData::MetaTable ^ % table);
public bool TryGetTable (Type entityType, out System.Web.DynamicData.MetaTable table);
member this.TryGetTable : Type * MetaTable -> bool
Public Function TryGetTable (entityType As Type, ByRef table As MetaTable) As Boolean

Parameters

entityType
Type

The table type.

table
MetaTable

When this method returns, and if the requested table has been found, contains the metadata for the specified table. This parameter is passed uninitialized.

Returns

true if the table metadata is found; otherwise, false.

Exceptions

entityType is null.

Remarks

This method gets the metadata that is associated with the specified table. If the table is not found, this method returns false. This differs from the GetTable method, which throws an exception if the table is not found.

Applies to