System.Collections.Specialized.NameValueCollection.GetValues Method

Gets the values at the specified index of the System.Collections.Specialized.NameValueCollection.

Syntax

public virtual string[] GetValues (int index)

Parameters

index
The zero-based index of the entry that contains the values to get from the collection.

Returns

A string array that contains the values at the specified index of the System.Collections.Specialized.NameValueCollection, if found; otherwise, null.

Exceptions

TypeReason
ArgumentOutOfRangeException index is outside the valid range of indices for the current instance.

Remarks

This method is an O(n) operation, where n is the number of values at the specified index.

Requirements

Namespace: System.Collections.Specialized
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0