Export (0) Print
Expand All

HttpHeaders.Contains Method

.NET Framework 4.6 and 4.5

Returns if a specific header exists in the HttpHeaders collection.

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

public bool Contains(
	string name
)

Parameters

name
Type: System.String

The specific header.

Return Value

Type: System.Boolean
Returns Boolean.
true is the specified header exists in the collection; otherwise false.

.NET Framework

Supported in: 4.6, 4.5

Supported in: Windows Phone 8.1
Show:
© 2015 Microsoft