DataBindingCollection Class
TOC
Collapse the table of content
Expand the table of content

DataBindingCollection Class

 

Provides a collection of DataBinding objects for an ASP.NET server control. This class cannot be inherited.

Namespace:   System.Web.UI
Assembly:  System.Web (in System.Web.dll)

System.Object
  System.Web.UI.DataBindingCollection

public sealed class DataBindingCollection : ICollection, IEnumerable

NameDescription
System_CAPS_pubmethodDataBindingCollection()

Initializes a new instance of the DataBindingCollection class.

NameDescription
System_CAPS_pubpropertyCount

Gets the number of DataBinding objects in the DataBindingCollection object.

System_CAPS_pubpropertyIsReadOnly

Gets a value indicating whether the DataBindingCollection collection is read-only.

System_CAPS_pubpropertyIsSynchronized

Gets a value indicating whether the DataBindingCollection collection is synchronized (thread safe).

System_CAPS_pubpropertyItem[String]

Gets the DataBinding object with the specified property name.

System_CAPS_pubpropertyRemovedBindings

Gets an array of the names of the DataBinding objects removed from the collection.

System_CAPS_pubpropertySyncRoot

Gets an object that can be used to synchronize access to the DataBindingCollection collection.

NameDescription
System_CAPS_pubmethodAdd(DataBinding)

Adds the specified DataBinding object to the DataBindingCollection collection.

System_CAPS_pubmethodClear()

Removes all DataBinding objects from the DataBindingCollection collection.

System_CAPS_pubmethodContains(String)

Determines whether the data-binding collection contains a specific DataBinding object.

System_CAPS_pubmethodCopyTo(Array, Int32)

Copies the DataBindingCollection values to a one-dimensional Array, beginning at the Array object's specified index.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetEnumerator()

Returns an enumerator to iterate through the DataBindingCollection object.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodRemove(DataBinding)

Removes the specified DataBinding object from the DataBindingCollection collection and adds it to the RemovedBindings collection.

System_CAPS_pubmethodRemove(String)

Removes the DataBinding object associated with the specified property name from the DataBindingCollection collection and adds it to the RemovedBindings collection.

System_CAPS_pubmethodRemove(String, Boolean)

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.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubeventChanged

Occurs when the collection of DataBinding objects is changed.

NameDescription
System_CAPS_pubmethodAsParallel()

Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.)

System_CAPS_pubmethodAsQueryable()

Overloaded. Converts an IEnumerable to an IQueryable.(Defined by Queryable.)

System_CAPS_pubmethodCast<TResult>()

Casts the elements of an IEnumerable to the specified type.(Defined by Enumerable.)

System_CAPS_pubmethodOfType<TResult>()

Filters the elements of an IEnumerable based on a specified type.(Defined by Enumerable.)

This collection is a dictionary containing all the DataBinding objects on an ASP.NET server control. You can access the objects contained in this collection through the Control class implementation of the IDataBindingsAccessor interface. 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.

.NET Framework
Available since 1.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft