This documentation is archived and is not being maintained.

DataKeyCollection Properties

The properties of the DataKeyCollection class are listed here. For a complete list of DataKeyCollection class members, see the DataKeyCollection Members topic.

Public Properties

public propertyCount Gets the number of items in the collection.
public propertyIsReadOnly Gets a value indicating whether items in the DataKeyCollection can be modified.
public propertyIsSynchronized Gets a value indicating whether the DataKeyCollection is synchronized (thread-safe).
public propertyItem Gets the key field at the specified index in the collection.

In C#, this property is the indexer for the DataKeyCollection class.

public propertySyncRoot Gets the object used to synchronize access to the DataKeyCollection.

See Also

DataKeyCollection Class | System.Web.UI.WebControls Namespace