ExpressionBindingCollection Class

Definition

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

This API supports the product infrastructure and is not intended to be used directly from your code.

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
Inheritance
ExpressionBindingCollection
Implements

Constructors

ExpressionBindingCollection()

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

Properties

Count

获取 ExpressionBinding 集合中的 ExpressionBindingCollection 对象数。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]

从集合中获取一个具有指定 ExpressionBinding 值的 PropertyName 对象。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.

Methods

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)

从目标数组中的指定索引处开始,将 ExpressionBinding 集合中的所有 ExpressionBindingCollection 对象复制到一个一维数组中。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)

从目标数组中的指定索引处开始,将 ExpressionBinding 集合中的所有 ExpressionBindingCollection 对象复制到 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.

(Inherited from 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.

(Inherited from Object)
GetType()

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

(Inherited from Object)
MemberwiseClone()

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

(Inherited from 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()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

Events

Changed

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

Extension Methods

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.

Applies to