This documentation is archived and is not being maintained.

DataKeyCollection Members

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.

Public method DataKeyCollection Initializes a new instance of the DataKeyCollection class.

Public method CopyTo Copies all the items from the DataKeyCollection to the specified System.Array object, starting at the specified index in the System.Array object.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetEnumerator Creates a System.Collections.IEnumerator implemented object that contains all key fields in the DataKeyCollection.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Public Extension Method AsQueryable Converts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension Method Cast Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension Method OfType Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)

Public property Count Gets the number of items in the collection.
Public property IsReadOnly Gets a value indicating whether items in the DataKeyCollection can be modified.
Public property IsSynchronized Gets a value indicating whether the DataKeyCollection is synchronized (thread-safe).
Public property Item Gets the key field at the specified index in the collection.
Public property SyncRoot Gets the object used to synchronize access to the DataKeyCollection.