DataSourceExpressionCollection 类

定义

表示要应用于数据源控件的表达式集合。

public ref class DataSourceExpressionCollection : System::Web::UI::StateManagedCollection
public class DataSourceExpressionCollection : System.Web.UI.StateManagedCollection
type DataSourceExpressionCollection = class
    inherit StateManagedCollection
Public Class DataSourceExpressionCollection
Inherits StateManagedCollection
继承
DataSourceExpressionCollection

构造函数

名称 说明
DataSourceExpressionCollection()

初始化 DataSourceExpression 类的新实例。

属性

名称 说明
Context

HttpContext获取类的DataSourceExpressionCollection实例。

Count

获取集合中包含的 StateManagedCollection 元素数。

(继承自 StateManagedCollection)
Item[Int32]

获取或设置指定索引处的数据源表达式对象。

Owner

获取所有者控件。

方法

名称 说明
Add(DataSourceExpression)

将数据源表达式对象添加到 DataSourceExpressionCollection 指定索引处的对象。

Clear()

从集合中删除所有项 StateManagedCollection

(继承自 StateManagedCollection)
Contains(DataSourceExpression)

确定对象是否 DataSourceExpressionCollection 包含特定的数据源表达式对象。

CopyTo(Array, Int32)

从特定数组索引开始,将集合的 StateManagedCollection 元素复制到数组。

(继承自 StateManagedCollection)
CopyTo(DataSourceExpression[], Int32)

从特定索引开始,将对象的元素 DataSourceExpressionCollection 复制到数组。

CreateKnownType(Int32)

创建数据源表达式对象的实例。

Equals(Object)

确定指定的对象是否等于当前对象。

(继承自 Object)
GetEnumerator()

返回循环访问集合的 StateManagedCollection 迭代器。

(继承自 StateManagedCollection)
GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetKnownTypes()

获取对象可以包含的数据源表达式对象的 DataSourceExpressionCollection 数组。

GetType()

获取当前实例的 Type

(继承自 Object)
IndexOf(DataSourceExpression)

获取对象中 DataSourceExpressionCollection 指定数据源表达式对象的索引。

Insert(Int32, DataSourceExpression)

将数据源表达式对象插入 DataSourceExpressionCollection 到指定索引处的对象中。

MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
OnClear()

在派生类中重写时,在方法从集合中删除所有项之前 Clear() 执行其他工作。

(继承自 StateManagedCollection)
OnClearComplete()

在派生类中重写时,在方法完成从集合中删除所有项后 Clear() 执行其他工作。

(继承自 StateManagedCollection)
OnInsert(Int32, Object)

在派生类中重写时,在或IList.Insert(Int32, Object)方法向集合中添加项之前IList.Add(Object)执行其他工作。

(继承自 StateManagedCollection)
OnInsertComplete(Int32, Object)

在派生类中重写时,在或IList.Insert(Int32, Object)方法向集合中添加项后IList.Add(Object)执行其他工作。

(继承自 StateManagedCollection)
OnRemove(Int32, Object)

在派生类中重写时,在或IList.Remove(Object)方法从集合中删除指定项之前IList.RemoveAt(Int32)执行其他工作。

(继承自 StateManagedCollection)
OnRemoveComplete(Int32, Object)

在派生类中重写时,在或IList.Remove(Object)方法从集合中删除指定项后IList.RemoveAt(Int32)执行其他工作。

(继承自 StateManagedCollection)
OnValidate(Object)

在派生类中重写时,验证集合的 StateManagedCollection 元素。

(继承自 StateManagedCollection)
Remove(DataSourceExpression)

从对象中删除指定数据源表达式对象的 DataSourceExpressionCollection 第一个匹配项。

RemoveAt(Int32)

从对象中移除指定索引处的 DataSourceExpressionCollection 数据源表达式对象。

SetDirty()

强制整个 StateManagedCollection 集合序列化为视图状态。

(继承自 StateManagedCollection)
SetDirtyObject(Object)

将指定的数据源表达式对象标记为自上次加载或从视图状态保存操作以来发生更改。

ToString()

返回一个表示当前对象的字符串。

(继承自 Object)

显式接口实现

名称 说明
ICollection.Count

获取集合中包含的 StateManagedCollection 元素数。

(继承自 StateManagedCollection)
ICollection.IsSynchronized

获取一个值,该值指示集合是否 StateManagedCollection 同步(线程安全)。 此方法在所有情况下返回 false

(继承自 StateManagedCollection)
ICollection.SyncRoot

获取一个对象,该对象可用于同步对 StateManagedCollection 集合的访问。 此方法在所有情况下返回 null

(继承自 StateManagedCollection)
IEnumerable.GetEnumerator()

返回循环访问集合的 StateManagedCollection 迭代器。

(继承自 StateManagedCollection)
IList.Add(Object)

将项添加到 StateManagedCollection 集合。

(继承自 StateManagedCollection)
IList.Clear()

从集合中删除所有项 StateManagedCollection

(继承自 StateManagedCollection)
IList.Contains(Object)

确定集合是否 StateManagedCollection 包含特定值。

(继承自 StateManagedCollection)
IList.IndexOf(Object)

确定集合中 StateManagedCollection 指定项的索引。

(继承自 StateManagedCollection)
IList.Insert(Int32, Object)

将项插入集合中的 StateManagedCollection 指定索引处。

(继承自 StateManagedCollection)
IList.IsFixedSize

获取一个值,该值指示集合是否 StateManagedCollection 具有固定大小。 此方法在所有情况下返回 false

(继承自 StateManagedCollection)
IList.IsReadOnly

获取一个值,该值指示集合是否 StateManagedCollection 为只读。

(继承自 StateManagedCollection)
IList.Item[Int32]

获取 IStateManager 指定索引处的元素。

(继承自 StateManagedCollection)
IList.Remove(Object)

从集合中删除指定对象的 StateManagedCollection 第一个匹配项。

(继承自 StateManagedCollection)
IList.RemoveAt(Int32)

IStateManager删除指定索引处的元素。

(继承自 StateManagedCollection)
IStateManager.IsTrackingViewState

获取一个值,该值指示集合是否 StateManagedCollection 正在保存对其视图状态的更改。

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

还原以前保存的 StateManagedCollection 集合的视图状态及其 IStateManager 包含的项。

(继承自 StateManagedCollection)
IStateManager.SaveViewState()

保存对 StateManagedCollection 集合及其包含的每个 IStateManager 对象所做的更改,因为页面发布回服务器的时间。

(继承自 StateManagedCollection)
IStateManager.TrackViewState()

StateManagedCollection使集合及其所包含的每个IStateManager对象跟踪其视图状态的更改,以便可以跨同一页的请求保留这些更改。

(继承自 StateManagedCollection)

扩展方法

名称 说明
AsParallel(IEnumerable)

启用查询的并行化。

AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryable

Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定类型。

OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。

适用于