HttpHeaders.Contains Method

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

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.
Show: