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 stores all of its data rows in the collection.

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

Use the indexer to directly retrieve a object 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 object, 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 should contain the objects with which to populate the collection.

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

  An object 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 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 to the specified object, starting at the specified index in the object.

  A zero-based object that receives the copied items from the object. The first index in the specified object 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 the upper bound of the collection. 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 . 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 that is represented by the property is undefined.

  Returns an enumerator that contains all objects in the .

  An implemented object that contains all objects in the .

  2.0.0.0
- Property
  2.0.0.0
  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.

- 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.GridViewRow `` 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 member is an explicit interface member implementation. It can be used only when the instance is cast to the interface.

  For a description of this member, see .

  The one-dimensional object that is the destination of the elements copied from the interface. The array must have zero-based indexing. The zero-based index in a object at which copying begins.