DynamicControlParameter 类

定义

表示一个用于主/详细信息筛选器的参数,在这些筛选器中,数据源从另一个数据控件中获取信息。Represents a parameter that is used for master-detail filters in which a data source gets information from another data control.

public ref class DynamicControlParameter : System::Web::UI::WebControls::Parameter, System::Web::DynamicData::IWhereParametersProvider
public class DynamicControlParameter : System.Web.UI.WebControls.Parameter, System.Web.DynamicData.IWhereParametersProvider
type DynamicControlParameter = class
    inherit Parameter
    interface IWhereParametersProvider
Public Class DynamicControlParameter
Inherits Parameter
Implements IWhereParametersProvider
继承
DynamicControlParameter
实现

注解

DynamicControlParameter对象用于 Where 数据源控件的查询的参数集合。The DynamicControlParameter object is used in the Where parameters collection of the data source control's query. 参数对象会按主键或外键自动筛选这两个控件,并自动支持多部分键。The parameter object automatically filters by primary key or foreign keys between the two controls and supports multi-part keys automatically.

构造函数

DynamicControlParameter()

初始化 DynamicControlParameter 类的新实例。Initializes a new instance of the DynamicControlParameter class.

DynamicControlParameter(String)

初始化 DynamicControlParameter 类的新实例(限定于指定控件)。Initializes a new instance of the DynamicControlParameter class, bound to the specified control.

属性

ControlId

获取或设置 DynamicControlParameter 对象绑定到的控件的唯一标识符。Gets or sets the unique identifier of the control that the DynamicControlParameter object binds to.

ConvertEmptyStringToNull

获取或设置一个值,该值指示在 Parameter 对象绑定到的值为 Empty 时是否应将其转换为 nullGets or sets a value indicating whether the value that the Parameter object is bound to should be converted to null if it is Empty.

(继承自 Parameter)
DbType

获取或设置参数的数据库类型。Gets or sets the database type of the parameter.

(继承自 Parameter)
DefaultValue

指定参数的默认值(如果调用 Evaluate(HttpContext, Control) 方法时参数绑定到的值未被初始化)。Specifies a default value for the parameter, should the value that the parameter is bound to be uninitialized when the Evaluate(HttpContext, Control) method is called.

(继承自 Parameter)
Direction

指示 Parameter 对象是否用于将值绑定到控件,或者是否可以使用控件更改值。Indicates whether the Parameter object is used to bind a value to a control, or the control can be used to change the value.

(继承自 Parameter)
IsTrackingViewState

获取一个值,该值指示 Parameter 对象是否保存对其视图状态的更改。Gets a value indicating whether the Parameter object is saving changes to its view state.

(继承自 Parameter)
Name

获取或设置参数的名称。Gets or sets the name of the parameter.

(继承自 Parameter)
Size

获取或设置参数的大小。Gets or sets the size of the parameter.

(继承自 Parameter)
Type

获取或设置参数的类型。Gets or sets the type of the parameter.

(继承自 Parameter)
ViewState

获取状态信息的字典,这些信息使您可以在同一页的多个请求间保存和还原 Parameter 对象的视图状态。Gets a dictionary of state information that allows you to save and restore the view state of a Parameter object across multiple requests for the same page.

(继承自 Parameter)

方法

Clone()

返回当前 Parameter 实例的副本。Returns a duplicate of the current Parameter instance.

(继承自 Parameter)
Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
Evaluate(HttpContext, Control)

引发 InvalidOperationException 异常以指示缺少 DynamicDataManager 控件。Throws an InvalidOperationException exception to indicate that the DynamicDataManager control is missing.

GetDatabaseType()

获取与当前 DbType 实例的 CLR 类型等效的 Parameter 值。Gets the DbType value that is equivalent to the CLR type of the current Parameter instance.

(继承自 Parameter)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
GetWhereParameters(IDynamicDataSource)

返回参数的集合,这些参数用于在查询数据源时创建 Where 子句。Returns the collection of parameters that are used to create a Where clause for when the data source is queried.

LoadViewState(Object)

将数据源视图还原为保存过的前一视图状态。Restores the data source view's previously saved view state.

(继承自 Parameter)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
OnParameterChanged()

调用包含 OnParametersChanged(EventArgs) 对象的 ParameterCollection 集合的 Parameter 方法。Calls the OnParametersChanged(EventArgs) method of the ParameterCollection collection that contains the Parameter object.

(继承自 Parameter)
SaveViewState()

自页回发到服务器开始,将更改保存到 Parameter 对象的视图状态。Saves the changes to the Parameter object's view state since the time the page was posted back to the server.

(继承自 Parameter)
SetDirty()

标记 Parameter 对象,以便在视图状态中记录其状态。Marks the Parameter object so its state will be recorded in view state.

(继承自 Parameter)
ToString()

将此实例的值转换为其等效的字符串表示形式。Converts the value of this instance to its equivalent string representation.

(继承自 Parameter)
TrackViewState()

使 Parameter 对象跟踪其视图状态更改,以便这些更改可以存储在控件的 ViewState 对象中并在同一页面的不同请求间保留。Causes the Parameter object to track changes to its view state so they can be stored in the control's ViewState object and persisted across requests for the same page.

(继承自 Parameter)

显式接口实现

ICloneable.Clone()

返回当前 Parameter 实例的副本。Returns a duplicate of the current Parameter instance.

(继承自 Parameter)
IStateManager.IsTrackingViewState

获取一个值,该值指示 Parameter 对象是否保存对其视图状态的更改。Gets a value indicating whether the Parameter object is saving changes to its view state.

(继承自 Parameter)
IStateManager.LoadViewState(Object)

将数据源视图还原为保存过的前一视图状态。Restores the data source view's previously saved view state.

(继承自 Parameter)
IStateManager.SaveViewState()

自页回发到服务器开始,将更改保存到 Parameter 对象的视图状态。Saves the changes to the Parameter object's view state since the time the page was posted back to the server.

(继承自 Parameter)
IStateManager.TrackViewState()

使 Parameter 对象跟踪其视图状态更改,以便这些更改可以存储在控件的 ViewState 对象中并在同一页面的不同请求间保留。Causes the Parameter object to track changes to its view state so they can be stored in the control's ViewState object and persisted across requests for the same page.

(继承自 Parameter)

适用于