HttpContent Class

HttpContent Class

.NET Framework (current version)
 

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

NameDescription
System_CAPS_protmethodHttpContent()

Initializes a new instance of the HttpContent class.

NameDescription
System_CAPS_pubpropertyHeaders

Gets the HTTP content headers as defined in RFC 2616.

NameDescription
System_CAPS_pubmethodCopyToAsync(Stream)

Serialize the HTTP content into a stream of bytes and copies it to the stream object provided as the stream parameter.

System_CAPS_pubmethodCopyToAsync(Stream, TransportContext)

Serialize the HTTP content into a stream of bytes and copies it to the stream object provided as the stream parameter.

System_CAPS_protmethodCreateContentReadStreamAsync()

Serialize the HTTP content to a memory stream as an asynchronous operation.

System_CAPS_pubmethodDispose()

Releases the unmanaged resources and disposes of the managed resources used by the HttpContent.

System_CAPS_protmethodDispose(Boolean)

Releases the unmanaged resources used by the HttpContent and optionally disposes of the managed resources.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodLoadIntoBufferAsync()

Serialize the HTTP content to a memory buffer as an asynchronous operation.

System_CAPS_pubmethodLoadIntoBufferAsync(Int64)

Serialize the HTTP content to a memory buffer as an asynchronous operation.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodReadAsByteArrayAsync()

Serialize the HTTP content to a byte array as an asynchronous operation.

System_CAPS_pubmethodReadAsStreamAsync()

Serialize the HTTP content and return a stream that represents the content as an asynchronous operation.

System_CAPS_pubmethodReadAsStringAsync()

Serialize the HTTP content to a string as an asynchronous operation.

System_CAPS_protmethodSerializeToStreamAsync(Stream, TransportContext)

Serialize the HTTP content to a stream as an asynchronous operation.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_protmethodTryComputeLength(Int64)

Determines whether the HTTP content has a valid length in bytes.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1

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

Return to top
Show:
© 2016 Microsoft