GetValues Method
Collapse the table of content
Expand the table of content

HttpHeaders.GetValues Method (String)

.NET Framework (current version)
 

Returns all header values for a specified header stored in the HttpHeaders collection.

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

public IEnumerable<string> GetValues(
	string name
)

Parameters

name
Type: System.String

The specified header to return values for.

Return Value

Type: System.Collections.Generic.IEnumerable<String>

Returns IEnumerable<T>.

An array of header strings.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top
Show:
© 2016 Microsoft