HttpContent Class

A base class representing an HTTP entity body and content headers.

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

Public MustInherit Class HttpContent _
	Implements IDisposable
Dim instance As HttpContent

The HttpContent type exposes the following members.

Protected methodHttpContentInitializes a new instance of the HttpContent class.

Public propertyHeadersGets the HTTP content headers as defined in RFC 2616.

Public methodCopyToAsync(Stream)Write the HTTP content to a stream as an asynchronous operation.
Public methodCopyToAsync(Stream, TransportContext)Write the HTTP content to a stream as an asynchronous operation.
Protected methodCreateContentReadStreamAsync
Public methodDisposeReleases the unmanaged resources and disposes of the managed resources used by the HttpContent.
Protected methodDispose(Boolean)Releases the unmanaged resources used by the HttpContent and optionally disposes of the managed resources.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodLoadIntoBufferAsyncSerialize the HTTP content to a memory buffer as an asynchronous operation.
Public methodLoadIntoBufferAsync(Int64)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodReadAsByteArrayAsync
Public methodReadAsStreamAsync
Public methodReadAsStringAsync
Protected methodSerializeToStreamAsyncSerialize the HTTP content to a stream as an asynchronous operation.
Public methodToString (Inherited from Object.)
Protected methodTryComputeLengthDetermines whether the HTTP content has a valid length in bytes.

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