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
- 继承
注解
此表达式筛选出不属于指定类型的数据源中的元素。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() |
获取当前实例的 Type。Gets 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 的浅表副本。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) |