DataBindingCollection DataBindingCollection DataBindingCollection DataBindingCollection Class

定义

为 ASP.NET 服务器控件提供 DataBinding 对象的集合。Provides a collection of DataBinding objects for an ASP.NET server control. 此类不能被继承。This class cannot be inherited.

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

注解

此集合是包含 ASP.NET 服务器控件上DataBinding所有对象的字典。This collection is a dictionary containing all the DataBinding objects on an ASP.NET server control. 可以通过Control IDataBindingsAccessor接口的类实现来访问此集合中包含的对象。You can access the objects contained in this collection through the Control class implementation of the IDataBindingsAccessor interface. DataBinding服务器DataBindingCollection控件关联的任何或对象只存在于设计时。Any DataBinding or DataBindingCollection objects associated with a server control exist only at design time. 它们在运行时不存在, 因此在运行时无法访问。They do not exist at run time and, therefore, are not accessible during run time.

构造函数

DataBindingCollection() DataBindingCollection() DataBindingCollection() DataBindingCollection()

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

属性

Count Count Count Count

获取 DataBindingCollection 对象中的 DataBinding 对象数。Gets the number of DataBinding objects in the DataBindingCollection object.

IsReadOnly IsReadOnly IsReadOnly IsReadOnly

获取指示 DataBindingCollection 集合是否为只读的值。Gets a value indicating whether the DataBindingCollection collection is read-only.

IsSynchronized IsSynchronized IsSynchronized IsSynchronized

获取指示 DataBindingCollection 集合是否已同步(线程安全)的值。Gets a value indicating whether the DataBindingCollection collection is synchronized (thread safe).

Item[String] Item[String] Item[String] Item[String]

获取具有指定属性名称的 DataBinding 对象。Gets the DataBinding object with the specified property name.

RemovedBindings RemovedBindings RemovedBindings RemovedBindings

获取从该集合中移除的 DataBinding 对象的名称的数组。Gets an array of the names of the DataBinding objects removed from the collection.

SyncRoot SyncRoot SyncRoot SyncRoot

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

方法

Add(DataBinding) Add(DataBinding) Add(DataBinding) Add(DataBinding)

将指定的 DataBinding 对象添加到 DataBindingCollection 集合。Adds the specified DataBinding object to the DataBindingCollection collection.

Clear() Clear() Clear() Clear()

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

Contains(String) Contains(String) Contains(String) Contains(String)

确定数据绑定集合是否包含特定 DataBinding 对象。Determines whether the data-binding collection contains a specific DataBinding object.

CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32)

Array 对象的指定索引开始,将 DataBindingCollection 值复制到一个一维 ArrayCopies the DataBindingCollection values to a one-dimensional Array, beginning at the Array object's specified index.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

返回要循环访问 DataBindingCollection 对象的枚举器。Returns an enumerator to iterate through the DataBindingCollection object.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

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

(Inherited from Object)
GetType() GetType() GetType() GetType()

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

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

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

(Inherited from Object)
Remove(DataBinding) Remove(DataBinding) Remove(DataBinding) Remove(DataBinding)

DataBindingCollection 集合中移除指定的 DataBinding 对象,并将其添加到 RemovedBindings 集合中。Removes the specified DataBinding object from the DataBindingCollection collection and adds it to the RemovedBindings collection.

Remove(String) Remove(String) Remove(String) Remove(String)

DataBindingCollection 集合中移除与指定属性名称相关联的 DataBinding 对象,并将其添加到 RemovedBindings 集合中。Removes the DataBinding object associated with the specified property name from the DataBindingCollection collection and adds it to the RemovedBindings collection.

Remove(String, Boolean) Remove(String, Boolean) Remove(String, Boolean) Remove(String, Boolean)

DataBindingCollection 集合中移除与指定属性名称相关联的 DataBinding 对象,并控制是否将绑定添加到 RemovedBindings 列表中。Removes the DataBinding object, associated with the specified property name, from the DataBindingCollection collection and controls whether to add the binding to the RemovedBindings list.

ToString() ToString() ToString() ToString()

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

(Inherited from Object)

事件

Changed Changed Changed Changed

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

扩展方法

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

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

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

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

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

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

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于

另请参阅