HttpContentHeaders Class
.NET Framework 4.5
Represents the collection of Content Headers as defined in RFC 2616.
Namespace: System.Net.Http.Headers
Assembly: System.Net.Http (in System.Net.Http.dll)
The HttpContentHeaders type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | Allow | Gets the value of the Allow content header on an HTTP response. |
![]() ![]() | ContentDisposition | Gets the value of the Content-Disposition content header on an HTTP response. |
![]() ![]() | ContentEncoding | Gets the value of the Content-Encoding content header on an HTTP response. |
![]() ![]() | ContentLanguage | Gets the value of the Content-Language content header on an HTTP response. |
![]() ![]() | ContentLength | Gets or sets the value of the Content-Length content header on an HTTP response. |
![]() ![]() | ContentLocation | Gets or sets the value of the Content-Location content header on an HTTP response. |
![]() ![]() | ContentMD5 | Gets or sets the value of the Content-MD5 content header on an HTTP response. |
![]() ![]() | ContentRange | Gets or sets the value of the Content-Range content header on an HTTP response. |
![]() ![]() | ContentType | Gets or sets the value of the Content-Type content header on an HTTP response. |
![]() ![]() | Expires | Gets or sets the value of the Expires content header on an HTTP response. |
![]() ![]() | LastModified | Gets or sets the value of the Last-Modified content header on an HTTP response. |
| Name | Description | |
|---|---|---|
![]() ![]() | Add(String, IEnumerable<String>) | Adds the specified header and its values into the HttpHeaders collection. (Inherited from HttpHeaders.) |
![]() ![]() | Add(String, String) | Adds the specified header and its value into the HttpHeaders collection. (Inherited from HttpHeaders.) |
![]() ![]() | Clear | Removes all headers from the HttpHeaders collection. (Inherited from HttpHeaders.) |
![]() ![]() | Contains | Returns if a specific header exists in the HttpHeaders collection. (Inherited from HttpHeaders.) |
![]() ![]() | Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() ![]() | GetEnumerator | Returns an enumerator that can iterate through the HttpHeaders instance. (Inherited from HttpHeaders.) |
![]() ![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() ![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() | GetValues | Returns all header values for a specified header stored in the HttpHeaders collection. (Inherited from HttpHeaders.) |
![]() ![]() | Remove | Removes the specified header from the HttpHeaders collection. (Inherited from HttpHeaders.) |
![]() ![]() | ToString | Returns a string that represents the current HttpHeaders object. (Inherited from HttpHeaders.) |
![]() ![]() | TryAddWithoutValidation(String, IEnumerable<String>) | Returns a value that indicates whether the specified header and its values were added to the HttpHeaders collection without validating the provided information. (Inherited from HttpHeaders.) |
![]() ![]() | TryAddWithoutValidation(String, String) | Returns a value that indicates whether the specified header and its value were added to the HttpHeaders collection without validating the provided information. (Inherited from HttpHeaders.) |
![]() ![]() | TryGetValues | Return if a specified header and specified values are stored in the HttpHeaders collection. (Inherited from HttpHeaders.) |
| Name | Description | |
|---|---|---|
![]() ![]() ![]() | IEnumerable.GetEnumerator | Gets an enumerator that can iterate through a HttpHeaders. (Inherited from HttpHeaders.) |
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.




