HttpContentHeaders Class

Definition

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

public ref class HttpContentHeaders sealed : System::Net::Http::Headers::HttpHeaders
public sealed class HttpContentHeaders : System.Net.Http.Headers.HttpHeaders
type HttpContentHeaders = class
    inherit HttpHeaders
Public NotInheritable Class HttpContentHeaders
Inherits HttpHeaders
Inheritance
HttpContentHeaders

Properties

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.

Methods

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(String)

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 the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
GetValues(String)

Returns all header values for a specified header stored in the HttpHeaders collection.

(Inherited from HttpHeaders)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Remove(String)

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(String, IEnumerable<String>)

Return if a specified header and specified values are stored in the HttpHeaders collection.

(Inherited from HttpHeaders)

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Gets an enumerator that can iterate through a HttpHeaders.

(Inherited from HttpHeaders)

Extension Methods

CopyToDataTable<T>(IEnumerable<T>)

Returns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption)

Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler)

Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Ancestors<T>(IEnumerable<T>)

Returns a collection of elements that contains the ancestors of every node in the source collection.

Ancestors<T>(IEnumerable<T>, XName)

Returns a filtered collection of elements that contains the ancestors of every node in the source collection. Only elements that have a matching XName are included in the collection.

DescendantNodes<T>(IEnumerable<T>)

Returns a collection of the descendant nodes of every document and element in the source collection.

Descendants<T>(IEnumerable<T>)

Returns a collection of elements that contains the descendant elements of every element and document in the source collection.

Descendants<T>(IEnumerable<T>, XName)

Returns a filtered collection of elements that contains the descendant elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection.

Elements<T>(IEnumerable<T>)

Returns a collection of the child elements of every element and document in the source collection.

Elements<T>(IEnumerable<T>, XName)

Returns a filtered collection of the child elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection.

InDocumentOrder<T>(IEnumerable<T>)

Returns a collection of nodes that contains all nodes in the source collection, sorted in document order.

Nodes<T>(IEnumerable<T>)

Returns a collection of the child nodes of every document and element in the source collection.

Remove<T>(IEnumerable<T>)

Removes every node in the source collection from its parent node.

Applies to