Export (0) Print
Expand All

HttpContentHeaders Class

.NET Framework 4.5

Represents the collection of Content Headers as defined in RFC 2616.

System.Object
  System.Net.Http.Headers.HttpHeaders
    System.Net.Http.Headers.HttpContentHeaders

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

public sealed class HttpContentHeaders : HttpHeaders

The HttpContentHeaders type exposes the following members.

  NameDescription
Public propertyAllowGets the value of the Allow content header on an HTTP response.
Public propertyContentDispositionGets the value of the Content-Disposition content header on an HTTP response.
Public propertyContentEncodingGets the value of the Content-Encoding content header on an HTTP response.
Public propertyContentLanguageGets the value of the Content-Language content header on an HTTP response.
Public propertyContentLengthGets or sets the value of the Content-Length content header on an HTTP response.
Public propertyContentLocationGets or sets the value of the Content-Location content header on an HTTP response.
Public propertyContentMD5Gets or sets the value of the Content-MD5 content header on an HTTP response.
Public propertyContentRangeGets or sets the value of the Content-Range content header on an HTTP response.
Public propertyContentTypeGets or sets the value of the Content-Type content header on an HTTP response.
Public propertyExpiresGets or sets the value of the Expires content header on an HTTP response.
Public propertyLastModifiedGets or sets the value of the Last-Modified content header on an HTTP response.
Top

  NameDescription
Public methodAdd(String, IEnumerable<String>)Adds the specified header and its values into the HttpHeaders collection. (Inherited from HttpHeaders.)
Public methodAdd(String, String)Adds the specified header and its value into the HttpHeaders collection. (Inherited from HttpHeaders.)
Public methodClearRemoves all headers from the HttpHeaders collection. (Inherited from HttpHeaders.)
Public methodContainsReturns if a specific header exists in the HttpHeaders collection. (Inherited from HttpHeaders.)
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetEnumeratorReturns an enumerator that can iterate through the HttpHeaders instance. (Inherited from HttpHeaders.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodGetValuesReturns all header values for a specified header stored in the HttpHeaders collection. (Inherited from HttpHeaders.)
Public methodRemoveRemoves the specified header from the HttpHeaders collection. (Inherited from HttpHeaders.)
Public methodToStringReturns a string that represents the current HttpHeaders object. (Inherited from HttpHeaders.)
Public methodTryAddWithoutValidation(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.)
Public methodTryAddWithoutValidation(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.)
Public methodTryGetValuesReturn if a specified header and specified values are stored in the HttpHeaders collection. (Inherited from HttpHeaders.)
Top

  NameDescription
Explicit interface implemetationPrivate methodIEnumerable.GetEnumeratorGets an enumerator that can iterate through a HttpHeaders. (Inherited from HttpHeaders.)
Top

.NET Framework

Supported in: 4.6, 4.5

Supported in: Windows Phone 8.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2015 Microsoft