Share via


WebRequest.Headers Property

When overridden in a descendant class, gets or sets the collection of header name/value pairs associated with the request.

Namespace: System.Net
Assembly: System (in system.dll)

Syntax

public virtual WebHeaderCollection Headers { get; set; }

Property Value

A WebHeaderCollection containing the header name/value pairs associated with this request.

Version Information

Available in the .NET Micro Framework versions 4.0, 4.1, and 4.2.

See Also

Reference

WebRequest Class
WebRequest Members
System.Net Namespace