DataKeyCollection::Item Property (Int32)

 

Gets the key field at the specified index in the collection.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public:
property Object^ default[
	int index
] {
	Object^ get(int index);
}

Parameters

index
Type: System::Int32

The zero-based index of the key field to retrieve from the collection.

Property Value

Type: System::Object^

The key field at the specified index in the collection.

Use this indexer to get the key field from the DataKeyCollection at the specified index, using array notation.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: