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 propertySupported in .NET for Windows Store appsAllowGets the value of the Allow content header on an HTTP response.
Public propertySupported in .NET for Windows Store appsContentDispositionGets the value of the Content-Disposition content header on an HTTP response.
Public propertySupported in .NET for Windows Store appsContentEncodingGets the value of the Content-Encoding content header on an HTTP response.
Public propertySupported in .NET for Windows Store appsContentLanguageGets the value of the Content-Language content header on an HTTP response.
Public propertySupported in .NET for Windows Store appsContentLengthGets or sets the value of the Content-Length content header on an HTTP response.
Public propertySupported in .NET for Windows Store appsContentLocationGets or sets the value of the Content-Location content header on an HTTP response.
Public propertySupported in .NET for Windows Store appsContentMD5Gets or sets the value of the Content-MD5 content header on an HTTP response.
Public propertySupported in .NET for Windows Store appsContentRangeGets or sets the value of the Content-Range content header on an HTTP response.
Public propertySupported in .NET for Windows Store appsContentTypeGets or sets the value of the Content-Type content header on an HTTP response.
Public propertySupported in .NET for Windows Store appsExpiresGets or sets the value of the Expires content header on an HTTP response.
Public propertySupported in .NET for Windows Store appsLastModifiedGets or sets the value of the Last-Modified content header on an HTTP response.
Top

  NameDescription
Public methodSupported in .NET for Windows Store appsAdd(String, IEnumerable<String>)Adds the specified header and its values into the HttpHeaders collection. (Inherited from HttpHeaders.)
Public methodSupported in .NET for Windows Store appsAdd(String, String)Adds the specified header and its value into the HttpHeaders collection. (Inherited from HttpHeaders.)
Public methodSupported in .NET for Windows Store appsClearRemoves all headers from the HttpHeaders collection. (Inherited from HttpHeaders.)
Public methodSupported in .NET for Windows Store appsContainsReturns if a specific header exists in the HttpHeaders collection. (Inherited from HttpHeaders.)
Public methodSupported in .NET for Windows Store appsEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodSupported in .NET for Windows Store appsGetEnumeratorReturns an enumerator that can iterate through the HttpHeaders instance. (Inherited from HttpHeaders.)
Public methodSupported in .NET for Windows Store appsGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodSupported in .NET for Windows Store appsGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodSupported in .NET for Windows Store appsGetValuesReturns all header values for a specified header stored in the HttpHeaders collection. (Inherited from HttpHeaders.)
Public methodSupported in .NET for Windows Store appsRemoveRemoves the specified header from the HttpHeaders collection. (Inherited from HttpHeaders.)
Public methodSupported in .NET for Windows Store appsToStringReturns a string that represents the current HttpHeaders object. (Inherited from HttpHeaders.)
Public methodSupported in .NET for Windows Store appsTryAddWithoutValidation(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 methodSupported in .NET for Windows Store appsTryAddWithoutValidation(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 methodSupported in .NET for Windows Store appsTryGetValuesReturn if a specified header and specified values are stored in the HttpHeaders collection. (Inherited from HttpHeaders.)
Top

  NameDescription
Explicit interface implemetationPrivate methodSupported in .NET for Windows Store appsIEnumerable.GetEnumeratorGets an enumerator that can iterate through a HttpHeaders. (Inherited from HttpHeaders.)
Top

.NET Framework

Supported in: 4.5

.NET for Windows Store apps

Supported in: Windows 8

.NET for Windows Phone apps

Supported in: Windows Phone 8.1

Windows Phone 8.1, Windows 8.1, Windows Server 2012 R2, 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.

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:
© 2014 Microsoft