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.

适用于