System.Web 2.0.0.0 System.Object System.Collections.ICollection

The class is used to store and manage a collection of objects in a control. Each row in a control is represented by a object. The control uses the class for its property.

The property contains only the data rows. To access the header row, footer row, top pager row, and bottom pager row, use the , , , and properties, respectively.

The class supports several ways to access the items in the collection:

Use the indexer to directly retrieve a object from the collection at a specific zero-based index.

Use the method to retrieve an enumerator that can be used to iterate through the collection.

Use the method to copy the items in the collection into an array, which can then be used to access the items in the collection.

To determine the total number of items in the collection, use the property.

Represents a collection of objects in a control.

- Constructor

  Use this constructor to initialize a new instance of the class using the specified object. The object contains the objects with which to populate the collection.

  Initializes a new instance of the class using the specified object.

  An that contains the objects with which to initialize the collection.
  2.0.0.0
- Method
  System.Void `` ``

  Use this method to copy the items in the object into the specified array, starting at the specified index. The array can then be used to access the items in the collection.

  You must use a zero-based array for the parameter.

  Copies all the items from this object to the specified object, starting at the specified index in the .

  A zero-based that receives the copied items from the . The first index in the specified to receive the copied contents. 2.0.0.0
- Property
  System.Int32 To be added.

  Use the property to determine the number of items in the collection. The property is commonly used when iterating through the collection to determine its upper bound. The property is also commonly used to determine whether a collection is empty.

  Gets the number of items in the object.

  2.0.0.0
- Method
  System.Collections.IEnumerator

  Use this method to get an enumerator that can be iterated through linearly to access each item in the object. To access the item at the current position in the enumerator, use the property. Use the method to move to the next item in the collection. To move the enumerator to its initial position, use the method.

  When you initially get the enumerator or use the method to move the enumerator to the first item in the collection, you must call the method. Otherwise, the item represented by the property is undefined.

  Returns an enumerator that contains all objects in the object.

  An -implemented object that contains all objects in the .

  2.0.0.0
- Property
  System.Boolean To be added.

  Use the property to determine whether the objects in the object can be modified.

  This property has been overridden to always return false, to indicate that the objects in the object can be modified in all cases.

  Gets a value indicating whether the rows in the object can be modified.

  2.0.0.0
- Property
  System.Boolean To be added.

  Use the property to determine whether the object is thread safe.

  This property has been overridden to always return false to indicate that the object is not thread safe.

  For more information on the property, see the property of the interface.

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

  2.0.0.0
- Property
  System.Web.UI.WebControls.DetailsViewRow `` To be added. To be added. To be added. To be added. 2.0.0.0
- Property
  System.Object To be added.

  Use the property to get an object that can be used to synchronize access to the collection. The object returned in this implementation is the object itself.

  For more information on the property, see the property of the interface.

  Gets the object used to synchronize access to the collection.

  2.0.0.0
- Method
  2.0.0.0
  System.Void `` ``

  This implementation of the method is a helper method used by the class to copy the items in the object into the specified object, starting at the specified index. The object can then be used to access the items in the collection.

  You must use a zero-based object for the parameter.

  Copies all the items from this object to the specified object, starting at the specified index in the .

  A zero-based that receives the copied items from the . The first index in the specified to receive the copied contents.