DataSourceExpression 類別

定義

表示用於建立運算式類別的基底類別。Represents a base class for creating expression classes.

public ref class DataSourceExpression abstract : System::Web::UI::IStateManager
public abstract class DataSourceExpression : System.Web.UI.IStateManager
type DataSourceExpression = class
    interface IStateManager
Public MustInherit Class DataSourceExpression
Implements IStateManager
繼承
DataSourceExpression
衍生
實作

建構函式

DataSourceExpression()

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

屬性

Context

取得擁有者控制項的 HttpContext 執行個體。Gets the HttpContext instance of the owner control.

DataSource

取得與擁有者控制項相關聯的資料來源物件。Gets the data source object that is associated with the owner control.

IsTrackingViewState

取得值,這個值指出資料來源運算式物件是否正在追蹤其檢視狀態變更。Gets a value that indicates whether a data source expression object is tracking its view state changes.

Owner

取得擁有者控制項。Gets the owner control.

ViewState

取得 StateBag 類別的執行個體,這個執行個體包含目前的檢視狀態資訊。Gets an instance of the StateBag class that contains the current view state information.

方法

Equals(Object)

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

(繼承來源 Object)
GetHashCode()

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

(繼承來源 Object)
GetQueryable(IQueryable)

使用 DataSourceExpression 介面評估 IQueryable 執行個體。Evaluates the DataSourceExpression instance using the IQueryable interface.

GetType()

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

(繼承來源 Object)
LoadViewState(Object)

載入 DataSourceExpression 物件中必須保存的值狀態。Loads the state of the values in the DataSourceExpression object that must be persisted.

MemberwiseClone()

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

(繼承來源 Object)
SaveViewState()

儲存 DataSourceExpression 物件的目前檢視狀態。Saves the current view state of the DataSourceExpression object.

SetContext(Control, HttpContext, IQueryableDataSource)

設定 DataSourceExpression 物件的 HTTP 內容,該物件會使用指定的擁有者控制項、HttpContext 執行個體和 IQueryableDataSource 物件。Sets the HTTP context of the DataSourceExpression object that uses the specified owner control, HttpContext instance, and IQueryableDataSource object.

SetDirty()

標記 DataSourceExpression 物件,以便將其狀態儲存在檢視狀態中。Marks the DataSourceExpression object so that its state will be saved in view state.

ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)
TrackViewState()

追蹤 DataSourceExpression 物件的檢視狀態變更,以便該變更可針對資料來源運算式物件儲存到 StateBag 物件中。Tracks view state changes of the DataSourceExpression object so that the changes can be stored in the StateBag object for the data source expression object.

明確介面實作

IStateManager.IsTrackingViewState

當由類別實作時取得值,這個值指出資料來源運算式物件是否正在追蹤其檢視狀態變更。When implemented by a class, gets a value that indicates whether a data source expression object is tracking its view state changes.

IStateManager.LoadViewState(Object)

當由類別實作時,載入資料來源運算式物件先前儲存的檢視狀態。When implemented by a class, loads the previously saved view state of the data source expression object.

IStateManager.SaveViewState()

當類別實作時,儲存 DataSourceExpression 物件的目前檢視狀態。When implemented by a class, saves the current view state of the DataSourceExpression object.

IStateManager.TrackViewState()

當由類別實作時,追蹤 DataSourceExpression 物件的檢視狀態變更,以便該變更可針對資料來源運算式物件儲存到 StateBag 物件中。When implemented by a class, tracks view state changes of the DataSourceExpression object so that the changes can be stored in the StateBag object for the data source expression object.

適用於

另請參閱