GetKey Method

Returns the key or index of an item in a collection depending on the value that is passed.

Collection.GetKey(eIndex)

Parameters

eIndex

Specifies a required expression that represents a position of an item in the collection. This expression can be one of two types:

  • Numeric. The eIndex expression must have a value from 1 to the value of the Count property of the collection.

  • String. The eIndex expression must correspond to the cKey that was specified for the item when it was added to the collection.

Expand imageReturn Value

Expand imageRemarks

Expand imageExample

Expand imageSee Also


© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic