ExpressionBindingCollection 类

定义

表示 ExpressionBinding 对象集合。Represents a collection of ExpressionBinding objects. 此类不能被继承。This class cannot be inherited.

此 API 支持产品基础结构,不能在代码中直接使用。

public ref class ExpressionBindingCollection sealed : System::Collections::ICollection
public sealed class ExpressionBindingCollection : System.Collections.ICollection
type ExpressionBindingCollection = class
    interface ICollection
    interface IEnumerable
Public NotInheritable Class ExpressionBindingCollection
Implements ICollection
继承
ExpressionBindingCollection
实现

构造函数

ExpressionBindingCollection()

初始化 ExpressionBindingCollection 类的新实例。Initializes a new instance of the ExpressionBindingCollection class.

属性

Count

获取 ExpressionBindingCollection 集合中的 ExpressionBinding 对象数。Gets the number of ExpressionBinding objects in the ExpressionBindingCollection collection.

IsReadOnly

获取一个值,该值指示是否可以修改集合中的 ExpressionBinding 对象。Gets a value indicating whether the ExpressionBinding objects in the collection can be modified.

IsSynchronized

获取一个值,该值指示对集合的访问是否为同步的(线程安全)。Gets a value indicating whether access to the collection is synchronized (thread safe).

Item[String]

从集合中获取一个具有指定 PropertyName 值的 ExpressionBinding 对象。Gets an ExpressionBinding object from the collection with the specified PropertyName value.

RemovedBindings

获取一个表示已被移除的绑定名称的字符串的集合。Gets a collection of strings representing the names of bindings that have been removed.

SyncRoot

获取可用于同步对集合的访问的对象。Gets an object that can be used to synchronize access to the collection.

方法

Add(ExpressionBinding)

将指定的 ExpressionBinding 对象追加到集合末尾。Appends the specified ExpressionBinding object to the end of the collection.

Clear()

从集合中移除所有 ExpressionBinding 对象。Removes all the ExpressionBinding objects from the collection.

Contains(String)

确定 ExpressionBindingCollection 集合中是否包含特定的 ExpressionBinding 对象。Determines whether the ExpressionBindingCollection collection contains a specific ExpressionBinding object.

CopyTo(Array, Int32)

从目标数组中的指定索引处开始,将 ExpressionBindingCollection 集合中的所有 ExpressionBinding 对象复制到一个一维数组中。Copies all the ExpressionBinding objects from the ExpressionBindingCollection collection to a one-dimensional array, starting at the specified index in the target array.

CopyTo(ExpressionBinding[], Int32)

从目标数组中的指定索引处开始,将 ExpressionBindingCollection 集合中的所有 ExpressionBinding 对象复制到 ExpressionBinding 对象的一维数组中。Copies all the ExpressionBinding objects from the ExpressionBindingCollection collection to a one-dimensional array of ExpressionBinding objects, starting at the specified index in the target array.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetEnumerator()

返回一个实现了 IEnumerator 的对象,该对象可以用于循环访问集合中的 ExpressionBinding 对象。Returns an IEnumerator-implemented object that can be used to iterate through the ExpressionBinding objects in the collection.

GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
Remove(ExpressionBinding)

从集合中移除指定的 ExpressionBinding 对象。Removes the specified ExpressionBinding object from the collection.

Remove(String)

从集合中移除指定的 ExpressionBinding 对象。Removes the specified ExpressionBinding object from the collection.

Remove(String, Boolean)

从集合中移除指定的 ExpressionBinding 对象。Removes the specified ExpressionBinding object from the collection.

ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

事件

Changed

ExpressionBinding 对象的集合更改时发生。Occurs when the collection of ExpressionBinding objects is changed.

扩展方法

Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

启用查询的并行化。Enables parallelization of a query.

AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于