WebHeaderCollection.GetValues Method (Int32)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets an array of header values stored in the index position of the header collection.

Namespace:   System.Net
Assembly:  System (in System.dll)

public override string[] GetValues(
	int index


Type: System.Int32

The header index to return.

Return Value

Type: System.String[]

An array of header strings.

GetValues returns the contents of the specified header as an array.

.NET Framework
Available since 1.1
Return to top