Response ContainsHeader Method C# API
Determines whether this Response contains a particular HTTP response header.

Namespace: Facilita.Web
Assembly: clrWebBrowser (in clrWebBrowser.dll) Version: 9.5.7.98 (1.0.0.0)
Syntax

public virtual bool ContainsHeader(
	string header
)

Parameters

header
Type: System String
The header to check for.

Return Value

true if this Response contains the specified header; otherwise, false.
Examples

The following example demonstrates checking for the "Last-Modified" header.
if (response.ContainsHeader("Last-Modified"))
{
    string lastModified = response.GetHeaderValue("Last-Modified");
    ...
}
See Also