DynamicDataExtensions.TryGetMetaTable DynamicDataExtensions.TryGetMetaTable DynamicDataExtensions.TryGetMetaTable DynamicDataExtensions.TryGetMetaTable Method

定義

判斷資料表中繼資料是否可供使用。Determines whether table metadata is available.

多載

TryGetMetaTable(IDataSource, MetaTable) TryGetMetaTable(IDataSource, MetaTable) TryGetMetaTable(IDataSource, MetaTable) TryGetMetaTable(IDataSource, MetaTable)

判斷資料表中繼資料是否可供使用。Determines whether table metadata is available.

TryGetMetaTable(INamingContainer, MetaTable) TryGetMetaTable(INamingContainer, MetaTable) TryGetMetaTable(INamingContainer, MetaTable) TryGetMetaTable(INamingContainer, MetaTable)

判斷資料表中繼資料是否可供使用。Determines whether table metadata is available.

TryGetMetaTable(IDataSource, MetaTable) TryGetMetaTable(IDataSource, MetaTable) TryGetMetaTable(IDataSource, MetaTable) TryGetMetaTable(IDataSource, MetaTable)

判斷資料表中繼資料是否可供使用。Determines whether table metadata is available.

public:
[System::Runtime::CompilerServices::Extension]
 static bool TryGetMetaTable(System::Web::UI::IDataSource ^ dataSource, [Runtime::InteropServices::Out] System::Web::DynamicData::MetaTable ^ % table);
public static bool TryGetMetaTable (this System.Web.UI.IDataSource dataSource, out System.Web.DynamicData.MetaTable table);
static member TryGetMetaTable : System.Web.UI.IDataSource *  -> bool
<Extension()>
Public Function TryGetMetaTable (dataSource As IDataSource, ByRef table As MetaTable) As Boolean

參數

dataSource
IDataSource IDataSource IDataSource IDataSource

包含資料表的資料來源。The data source that contains the table.

table
MetaTable MetaTable MetaTable MetaTable

這個方法傳回的內容會包含此資料表中繼資料。When this method returns, contains the table metadata. 這個參數會以未初始化的狀態傳遞。This parameter is passed uninitialized.

傳回

如果可使用資料表中繼資料則為 true,否則為 falsetrue if table metadata is available; otherwise, false.

TryGetMetaTable(INamingContainer, MetaTable) TryGetMetaTable(INamingContainer, MetaTable) TryGetMetaTable(INamingContainer, MetaTable) TryGetMetaTable(INamingContainer, MetaTable)

判斷資料表中繼資料是否可供使用。Determines whether table metadata is available.

public:
[System::Runtime::CompilerServices::Extension]
 static bool TryGetMetaTable(System::Web::UI::INamingContainer ^ control, [Runtime::InteropServices::Out] System::Web::DynamicData::MetaTable ^ % table);
public static bool TryGetMetaTable (this System.Web.UI.INamingContainer control, out System.Web.DynamicData.MetaTable table);
static member TryGetMetaTable : System.Web.UI.INamingContainer *  -> bool
<Extension()>
Public Function TryGetMetaTable (control As INamingContainer, ByRef table As MetaTable) As Boolean

參數

control
INamingContainer INamingContainer INamingContainer INamingContainer

包含資料表的 INamingContainer 物件。The INamingContainer object that contains the table.

table
MetaTable MetaTable MetaTable MetaTable

這個方法傳回的內容會包含此資料表中繼資料。When this method returns, contains the table metadata. 這個參數會以未初始化的狀態傳遞。This parameter is passed uninitialized.

傳回

如果可使用資料表中繼資料則為 true,否則為 falsetrue if table metadata is available; otherwise, false.

適用於