HttpHeaders::TryGetValues Method (String^, IEnumerable<String^>^%)

.NET Framework (current version)
 

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,
	[OutAttribute] 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

true is the specified header name and values are stored in the collection; otherwise false.

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