Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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 abstract class HttpContent : IDisposable

The HttpContent type exposes the following members.

  NameDescription
Protected methodHttpContentInitializes a new instance of the HttpContent class.
Top
  NameDescription
Public propertyHeadersGets the HTTP content headers as defined in RFC 2616.
Top
  NameDescription
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 methodDispose()Releases 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 methodLoadIntoBufferAsync()Serialize 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.
Top
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.