Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

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


Type: System.String
The specified header.
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.
© 2015 Microsoft