DynamicDataExtensions.GetDefaultValues DynamicDataExtensions.GetDefaultValues DynamicDataExtensions.GetDefaultValues DynamicDataExtensions.GetDefaultValues Method

定義

取得預設值。Gets the default values.

多載

GetDefaultValues(IDataSource) GetDefaultValues(IDataSource) GetDefaultValues(IDataSource) GetDefaultValues(IDataSource)

取得所指定資料來源的預設值集合。Gets the collection of the default values for the specified data source.

GetDefaultValues(INamingContainer) GetDefaultValues(INamingContainer) GetDefaultValues(INamingContainer) GetDefaultValues(INamingContainer)

取得所指定資料控制項的預設值集合。Gets the collection of the default values for the specified data control.

GetDefaultValues(IDataSource) GetDefaultValues(IDataSource) GetDefaultValues(IDataSource) GetDefaultValues(IDataSource)

取得所指定資料來源的預設值集合。Gets the collection of the default values for the specified data source.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ GetDefaultValues(System::Web::UI::IDataSource ^ dataSource);
public static System.Collections.Generic.IDictionary<string,object> GetDefaultValues (this System.Web.UI.IDataSource dataSource);
static member GetDefaultValues : System.Web.UI.IDataSource -> System.Collections.Generic.IDictionary<string, obj>
<Extension()>
Public Function GetDefaultValues (dataSource As IDataSource) As IDictionary(Of String, Object)

參數

dataSource
IDataSource IDataSource IDataSource IDataSource

要為其取得預設值的資料來源。The data source for which to get the default values.

傳回

IDataSource 物件相關聯的預設值集合。The collection of default values that are associated with the IDataSource object.

備註

預設值的集合使用來設定SetMetaTableEnableDynamicData方法。The collection of default values is set by using the SetMetaTable or EnableDynamicData methods.

GetDefaultValues(INamingContainer) GetDefaultValues(INamingContainer) GetDefaultValues(INamingContainer) GetDefaultValues(INamingContainer)

取得所指定資料控制項的預設值集合。Gets the collection of the default values for the specified data control.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ GetDefaultValues(System::Web::UI::INamingContainer ^ control);
public static System.Collections.Generic.IDictionary<string,object> GetDefaultValues (this System.Web.UI.INamingContainer control);
static member GetDefaultValues : System.Web.UI.INamingContainer -> System.Collections.Generic.IDictionary<string, obj>
<Extension()>
Public Function GetDefaultValues (control As INamingContainer) As IDictionary(Of String, Object)

參數

control
INamingContainer INamingContainer INamingContainer INamingContainer

要為其取得預設值的資料控制項。The data control for which to get the default values.

傳回

INamingContainer 物件相關聯的預設值集合。The collection of default values that are associated with the INamingContainer object.

備註

預設值的集合使用來設定SetMetaTableEnableDynamicData方法。The collection of default values is set by using the SetMetaTable or EnableDynamicData methods.

適用於