Export (0) Print
Expand All

HttpHeaders.TryGetValues Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Return if a specified header and specified values are stored in the HttpHeaders collection.

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

public bool TryGetValues(
	string name,
	out IEnumerable<string> values
)

Parameters

name
Type: System.String
The specified header.
values
Type: System.Collections.Generic.IEnumerable<String>%
The specified header values.

Return Value

Type: System.Boolean
Returns Boolean.
true is the specified header name and values are stored in the collection; otherwise false.
Show:
© 2014 Microsoft