Share via


MetaTable.TryGetTable(Type, MetaTable) 方法

定義

擷取與所指定型別及資料表相關聯的中繼資料表。

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

參數

entityType
Type

實體的型別。

table
MetaTable

當這個方法傳回時,傳回值會包含與所指定型別相關聯的中繼資料表。 這個參數會以未初始化的狀態傳遞。

傳回

與所指定型別和資料表相關聯的中繼資料表。

例外狀況

entityTypenull

適用於