Bewerken

Share via


NameObjectCollectionBase.KeysCollection.Get(Int32) Method

Definition

Gets the key at the specified index of the collection.

public:
 virtual System::String ^ Get(int index);
public virtual string Get (int index);
public virtual string? Get (int index);
abstract member Get : int -> string
override this.Get : int -> string
Public Overridable Function Get (index As Integer) As String

Parameters

index
Int32

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

Returns

A String that contains the key at the specified index of the collection.

Exceptions

index is outside the valid range of indexes for the collection.

Remarks

This method is an O(1) operation.

Applies to