OfTypeExpression 類別

定義

提供方法,以根據指定的類型來篩選查詢。Provides a way to filter a query based on a specified type.

public ref class OfTypeExpression : System::Web::UI::WebControls::Expressions::DataSourceExpression
public class OfTypeExpression : System.Web.UI.WebControls.Expressions.DataSourceExpression
type OfTypeExpression = class
    inherit DataSourceExpression
Public Class OfTypeExpression
Inherits DataSourceExpression
繼承
OfTypeExpression

備註

此運算式會篩選出不屬於指定類型之資料來源中的元素。This expression filters out elements in the data source that are not of the specified type.

建構函式

OfTypeExpression()

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

OfTypeExpression(Type)

使用指定的型別來初始化 OfTypeExpression 類別的新執行個體。Initializes a new instance of the OfTypeExpression class using a specified type.

屬性

Context

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

(繼承來源 DataSourceExpression)
DataSource

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

(繼承來源 DataSourceExpression)
IsTrackingViewState

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

(繼承來源 DataSourceExpression)
Owner

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

(繼承來源 DataSourceExpression)
TypeName

取得或設定篩選所依據的型別。Gets or sets the type that the filter is based on.

ViewState

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

(繼承來源 DataSourceExpression)

方法

Equals(Object)

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

(繼承來源 Object)
GetHashCode()

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

(繼承來源 Object)
GetQueryable(IQueryable)

傳回已執行 OfTypeExpression 的查詢。Returns the query that the OfTypeExpression was performed on.

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.

(繼承來源 DataSourceExpression)
MemberwiseClone()

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

(繼承來源 Object)
SaveViewState()

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

(繼承來源 DataSourceExpression)
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.

(繼承來源 DataSourceExpression)
SetDirty()

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

(繼承來源 DataSourceExpression)
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.

(繼承來源 DataSourceExpression)

明確介面實作

IStateManager.IsTrackingViewState

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

(繼承來源 DataSourceExpression)
IStateManager.LoadViewState(Object)

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

(繼承來源 DataSourceExpression)
IStateManager.SaveViewState()

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

(繼承來源 DataSourceExpression)
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.

(繼承來源 DataSourceExpression)

適用於