Represents a collection that contains the key field of each record in a data source. This class cannot be inherited.
The DataKeyCollection type exposes the following members.
|CopyTo||Copies all the items from the DataKeyCollection to the specified System.Array object, starting at the specified index in the System.Array object.|
|Equals||Determines whether the specified Object is equal to the current Object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetEnumerator||Creates a System.Collections.IEnumerator implemented object that contains all key fields in the DataKeyCollection.|
|GetHashCode||Serves as a hash function for a particular type. (Inherited from Object.)|
|GetType||Gets the type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
|Count||Gets the number of items in the collection.|
|IsReadOnly||Gets a value indicating whether items in the DataKeyCollection can be modified.|
|IsSynchronized||Gets a value indicating whether the DataKeyCollection is synchronized (thread-safe).|
|Item||Gets the key field at the specified index in the collection.|
|SyncRoot||Gets the object used to synchronize access to the DataKeyCollection.|