HttpContent Methods

The HttpContent type exposes the following members.

Methods

  Name Description
Public method CopyToAsync(Stream) Write the HTTP content to a stream as an asynchronous operation.
Public method CopyToAsync(Stream, TransportContext) Write the HTTP content to a stream as an asynchronous operation.
Protected method CreateContentReadStreamAsync
Public method Dispose() Releases the unmanaged resources and disposes of the managed resources used by the HttpContent.
Protected method Dispose(Boolean) Releases the unmanaged resources used by the HttpContent and optionally disposes of the managed resources.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method LoadIntoBufferAsync() Serialize the HTTP content to a memory buffer as an asynchronous operation.
Public method LoadIntoBufferAsync(Int64)
Protected method MemberwiseClone (Inherited from Object.)
Public method ReadAsByteArrayAsync
Public method ReadAsStreamAsync
Public method ReadAsStringAsync
Protected method SerializeToStreamAsync Serialize the HTTP content to a stream as an asynchronous operation.
Public method ToString (Inherited from Object.)
Protected method TryComputeLength Determines whether the HTTP content has a valid length in bytes.

Top

See Also

Reference

HttpContent Class

System.Net.Http Namespace