System.Web 1.0.5000.0 2.0.0.0 Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details. System.Object System.Collections.ICollection

The class represents a collection of the key fields in the data source. The key field of each record in the data source is stored in this collection. This allows you to store the key field with a data listing control without displaying it in the control. This collection is automatically filled with the values from the field specified by the property. This collection does not allow you to manually add or remove items from the collection.

The key field is commonly used in a handler for an event, such as ItemCommand or DeleteCommand, as part of an update query string to revise a specific record in the data source. The key field helps the update query string identify the appropriate record to modify.

Use the property to determine the number of items in the collection. To programmatically retrieve a key field from a , use one of following methods:

Use the indexer to get a single key field from the collection, using array notation.

Use the method to copy the contents of the collection to a object, which can then be used to get items from the collection.

Use the method to create a implemented object, which can then be used to get items from the collection.

Represents a collection that contains the key field of each record in a data source. This class cannot be inherited.

- Constructor

  Use this constructor to create and initialize a new instance of the class.

  Initializes a new instance of the class.

  A that contains key fields from the data source.
  1.0.5000.0
  2.0.0.0
- Method
  System.Void `` ``

  Use this method to copy the contents of the into the specified object, starting at the specified index.

  The parameter must be a zero-based object.

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

  A zero-based object that receives the copied items from the . The first position in the specified object to receive the copied contents. 1.0.5000.0 2.0.0.0
- Property
  System.Int32 To be added: an object of type 'int'

  Use the property to determine the number of items in the collection. This property is commonly used when iterating through the collection to determine the upper bound.

  Gets the number of items in the collection.

  1.0.5000.0
  2.0.0.0
- Method
  System.Collections.IEnumerator

  Use this method to create a implemented object that can be iterated through to get each item in the .

  Use the property to get the item currently pointed to in the collection.

  Use the method to move to the next item in the collection.

  Use the method to move the enumerator to its initial position.

  After you create a implemented object 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.

  Creates a implemented object that contains all key fields in the .

  A implemented object that contains all key fields in the .

  1.0.5000.0
  2.0.0.0
- Property
  System.Boolean To be added: an object of type 'bool'

  This property always returns false to indicate that the can be written to in all cases.

  Gets a value indicating whether items in the can be modified.

  1.0.5000.0
  2.0.0.0
- Property
  System.Boolean To be added: an object of type 'bool'

  This property is derived from the interface and is overridden to always return false to indicate that the is not thread-safe.

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

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

  1.0.5000.0
  2.0.0.0
- Property
  System.Object `` To be added. To be added. To be added. To be added. 1.0.5000.0 2.0.0.0
- Property
  System.Object To be added: an object of type 'object'

  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 .

  1.0.5000.0
  2.0.0.0