DynamicControlParameter DynamicControlParameter DynamicControlParameter DynamicControlParameter Class

定義

表示用於主控制項/詳細資料控制項篩選的參數,資料來源可以透過這些篩選從另一個資料控制項取得資訊。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
繼承
DynamicControlParameterDynamicControlParameterDynamicControlParameterDynamicControlParameter
實作

備註

物件用於資料來源控制項查詢的parameters集合。Where DynamicControlParameterThe 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() DynamicControlParameter() DynamicControlParameter()

初始化 DynamicControlParameter 類別的新執行個體。Initializes a new instance of the DynamicControlParameter class.

DynamicControlParameter(String) DynamicControlParameter(String) DynamicControlParameter(String) DynamicControlParameter(String)

初始化 DynamicControlParameter 類別的新執行個體,此類別已繫結至指定的控制項。Initializes a new instance of the DynamicControlParameter class, bound to the specified control.

屬性

ControlId ControlId ControlId ControlId

取得或設定 DynamicControlParameter 物件要繫結之控制項的唯一識別項。Gets or sets the unique identifier of the control that the DynamicControlParameter object binds to.

ConvertEmptyStringToNull ConvertEmptyStringToNull ConvertEmptyStringToNull ConvertEmptyStringToNull

取得或設定值,該值指示是否應將 Parameter 物件繫結至的值轉換成 null (如果其為 Empty)。Gets or sets a value indicating whether the value that the Parameter object is bound to should be converted to null if it is Empty.

(Inherited from Parameter)
DbType DbType DbType DbType

取得或設定參數的資料庫型別。Gets or sets the database type of the parameter.

(Inherited from Parameter)
DefaultValue DefaultValue DefaultValue 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.

(Inherited from Parameter)
Direction Direction Direction 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.

(Inherited from Parameter)
IStateManager.IsTrackingViewState IStateManager.IsTrackingViewState IStateManager.IsTrackingViewState IStateManager.IsTrackingViewState

取得值,指出 Parameter 物件是否正在將變更儲存到它的檢視狀態。Gets a value indicating whether the Parameter object is saving changes to its view state.

(Inherited from Parameter)
IsTrackingViewState IsTrackingViewState IsTrackingViewState IsTrackingViewState

取得值,指出 Parameter 物件是否正在將變更儲存到它的檢視狀態。Gets a value indicating whether the Parameter object is saving changes to its view state.

(Inherited from Parameter)
Name Name Name Name

取得或設定參數的名稱。Gets or sets the name of the parameter.

(Inherited from Parameter)
Size Size Size Size

取得或設定參數的大小。Gets or sets the size of the parameter.

(Inherited from Parameter)
Type Type Type Type

取得或設定參數的型別。Gets or sets the type of the parameter.

(Inherited from Parameter)
ViewState ViewState ViewState 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.

(Inherited from Parameter)

方法

Clone() Clone() Clone() Clone()

傳回目前 Parameter 執行個體的複製。Returns a duplicate of the current Parameter instance.

(Inherited from Parameter)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
Evaluate(HttpContext, Control) Evaluate(HttpContext, Control) Evaluate(HttpContext, Control) Evaluate(HttpContext, Control)

擲回 InvalidOperationException 例外狀況,表示 DynamicDataManager 控制項遺失。Throws an InvalidOperationException exception to indicate that the DynamicDataManager control is missing.

GetDatabaseType() GetDatabaseType() GetDatabaseType() GetDatabaseType()

取得 DbType 值,該值等於目前 Parameter 執行個體的 CLR 型別。Gets the DbType value that is equivalent to the CLR type of the current Parameter instance.

(Inherited from Parameter)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
GetWhereParameters(IDynamicDataSource) GetWhereParameters(IDynamicDataSource) GetWhereParameters(IDynamicDataSource) 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) LoadViewState(Object) LoadViewState(Object) LoadViewState(Object)

將資料來源檢視還原成之前所儲存的檢視狀態。Restores the data source view's previously saved view state.

(Inherited from Parameter)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
OnParameterChanged() OnParameterChanged() OnParameterChanged() OnParameterChanged()

呼叫 OnParametersChanged(EventArgs) 集合的 ParameterCollection 方法,該集合包含給定的 Parameter 物件。Calls the OnParametersChanged(EventArgs) method of the ParameterCollection collection that contains the Parameter object.

(Inherited from Parameter)
SaveViewState() SaveViewState() SaveViewState() SaveViewState()

儲存自頁面回傳至伺服器以來 Parameter 物件檢視狀態的變更。Saves the changes to the Parameter object's view state since the time the page was posted back to the server.

(Inherited from Parameter)
SetDirty() SetDirty() SetDirty() SetDirty()

標記 Parameter 物件,以便將其狀態記錄在檢視狀態中。Marks the Parameter object so its state will be recorded in view state.

(Inherited from Parameter)
ToString() ToString() ToString() ToString()

將這個執行個體的值轉換為它的相等字串表示。Converts the value of this instance to its equivalent string representation.

(Inherited from Parameter)
TrackViewState() TrackViewState() TrackViewState() 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.

(Inherited from Parameter)

明確介面實作

ICloneable.Clone() ICloneable.Clone() ICloneable.Clone() ICloneable.Clone()

傳回目前 Parameter 執行個體的複製。Returns a duplicate of the current Parameter instance.

(Inherited from Parameter)
IStateManager.LoadViewState(Object) IStateManager.LoadViewState(Object) IStateManager.LoadViewState(Object) IStateManager.LoadViewState(Object)

將資料來源檢視還原成之前所儲存的檢視狀態。Restores the data source view's previously saved view state.

(Inherited from Parameter)
IStateManager.SaveViewState() IStateManager.SaveViewState() IStateManager.SaveViewState() IStateManager.SaveViewState()

儲存自頁面回傳至伺服器以來 Parameter 物件檢視狀態的變更。Saves the changes to the Parameter object's view state since the time the page was posted back to the server.

(Inherited from Parameter)
IStateManager.TrackViewState() IStateManager.TrackViewState() IStateManager.TrackViewState() 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.

(Inherited from Parameter)

適用於