Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
PushStreamContent Class

PushStreamContent Class

 

Enables scenarios where a data producer wants to write directly (either synchronously or asynchronously) using a stream.

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

System.Object
  System.Net.Http.HttpContent
    System.Net.Http.PushStreamContent

public class PushStreamContent : HttpContent

NameDescription
System_CAPS_pubmethodPushStreamContent(Action<Stream, HttpContent, TransportContext>)

Initializes a new instance of the PushStreamContent class.

System_CAPS_pubmethodPushStreamContent(Action<Stream, HttpContent, TransportContext>, MediaTypeHeaderValue)

Initializes a new instance of the PushStreamContent class.

System_CAPS_pubmethodPushStreamContent(Action<Stream, HttpContent, TransportContext>, String)

Initializes a new instance of the PushStreamContent class.

System_CAPS_pubmethodPushStreamContent(Func<Stream, HttpContent, TransportContext, Task>)

Initializes a new instance of the PushStreamContent class.

System_CAPS_pubmethodPushStreamContent(Func<Stream, HttpContent, TransportContext, Task>, MediaTypeHeaderValue)

Initializes a new instance of the PushStreamContent class.

System_CAPS_pubmethodPushStreamContent(Func<Stream, HttpContent, TransportContext, Task>, String)

Initializes a new instance of the PushStreamContent class.

NameDescription
System_CAPS_pubpropertyHeaders

(Inherited from HttpContent.)

NameDescription
System_CAPS_pubmethodCopyToAsync(Stream)

(Inherited from HttpContent.)

System_CAPS_pubmethodCopyToAsync(Stream, TransportContext)

(Inherited from HttpContent.)

System_CAPS_protmethodCreateContentReadStreamAsync()

(Inherited from HttpContent.)

System_CAPS_pubmethodDispose()

(Inherited from HttpContent.)

System_CAPS_protmethodDispose(Boolean)

(Inherited from HttpContent.)

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodLoadIntoBufferAsync()

(Inherited from HttpContent.)

System_CAPS_pubmethodLoadIntoBufferAsync(Int64)

(Inherited from HttpContent.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodReadAsByteArrayAsync()

(Inherited from HttpContent.)

System_CAPS_pubmethodReadAsStreamAsync()

(Inherited from HttpContent.)

System_CAPS_pubmethodReadAsStringAsync()

(Inherited from HttpContent.)

System_CAPS_protmethodSerializeToStreamAsync(Stream, TransportContext)

Asynchronously serializes the push content into stream.(Overrides HttpContent.SerializeToStreamAsync(Stream, TransportContext).)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_protmethodTryComputeLength(Int64)

Determines whether the stream content has a valid length in bytes.(Overrides HttpContent.TryComputeLength(Int64).)

NameDescription
System_CAPS_pubmethodGetODataMessageReaderAsync(ODataMessageReaderSettings)

Overloaded. (Defined by ODataHttpContentExtensions.)

System_CAPS_pubmethodGetODataMessageReaderAsync(ODataMessageReaderSettings)

Overloaded. Gets the ODataMessageReader for the HttpContent stream.(Defined by ODataHttpContentExtensions.)

System_CAPS_pubmethodGetODataMessageReaderAsync(ODataMessageReaderSettings, CancellationToken)

Overloaded. (Defined by ODataHttpContentExtensions.)

System_CAPS_pubmethodGetODataMessageReaderAsync(ODataMessageReaderSettings, CancellationToken)

Overloaded. Gets the ODataMessageReader for the HttpContent stream.(Defined by ODataHttpContentExtensions.)

System_CAPS_pubmethodIsFormData()

Determines whether the specified content is HTML form URL-encoded data.(Defined by HttpContentFormDataExtensions.)

System_CAPS_pubmethodIsHttpRequestMessageContent()

Determines whether the specified content is HTTP request message content.(Defined by HttpContentMessageExtensions.)

System_CAPS_pubmethodIsHttpResponseMessageContent()

Determines whether the specified content is HTTP response message content.(Defined by HttpContentMessageExtensions.)

System_CAPS_pubmethodIsMimeMultipartContent()

Overloaded. Determines whether the specified content is MIME multipart content.(Defined by HttpContentMultipartExtensions.)

System_CAPS_pubmethodIsMimeMultipartContent(String)

Overloaded. Determines whether the specified content is MIME multipart content with the specified subtype.(Defined by HttpContentMultipartExtensions.)

System_CAPS_pubmethodReadAsAsync(Type)

Overloaded. Returns a Task that will yield an object of the specified type from the content instance. (Defined by HttpContentExtensions.)

System_CAPS_pubmethodReadAsAsync(Type, CancellationToken)

Overloaded. Returns a Task that will yield an object of the specified type from the content instance using one of the provided formatters to deserialize the content.(Defined by HttpContentExtensions.)

System_CAPS_pubmethodReadAsAsync(Type, IEnumerable<MediaTypeFormatter>)

Overloaded. Returns a Task that will yield an object of the specified type from the content instance using one of the provided formatters to deserialize the content. (Defined by HttpContentExtensions.)

System_CAPS_pubmethodReadAsAsync(Type, IEnumerable<MediaTypeFormatter>, CancellationToken)

Overloaded. Returns a Task that will yield an object of the specified type from the content instance using one of the provided formatters to deserialize the content.(Defined by HttpContentExtensions.)

System_CAPS_pubmethodReadAsAsync(Type, IEnumerable<MediaTypeFormatter>, IFormatterLogger)

Overloaded. Returns a Task that will yield an object of the specified type from the content instance using one of the provided formatters to deserialize the content. (Defined by HttpContentExtensions.)

System_CAPS_pubmethodReadAsAsync(Type, IEnumerable<MediaTypeFormatter>, IFormatterLogger, CancellationToken)

Overloaded. Returns a Task that will yield an object of the specified type from the content instance using one of the provided formatters to deserialize the content.(Defined by HttpContentExtensions.)

System_CAPS_pubmethodReadAsAsync<T>()

Overloaded. Returns a Task that will yield an object of the specified type <typeparamref name="T" /> from the content instance. (Defined by HttpContentExtensions.)

System_CAPS_pubmethodReadAsAsync<T>(CancellationToken)

Overloaded. Returns a Task that will yield an object of the specified type from the content instance.(Defined by HttpContentExtensions.)

System_CAPS_pubmethodReadAsAsync<T>(IEnumerable<MediaTypeFormatter>)

Overloaded. Returns a Task that will yield an object of the specified type <typeparamref name="T" /> from the content instance. (Defined by HttpContentExtensions.)

System_CAPS_pubmethodReadAsAsync<T>(IEnumerable<MediaTypeFormatter>, CancellationToken)

Overloaded. Returns a Task that will yield an object of the specified type from the content instance.(Defined by HttpContentExtensions.)

System_CAPS_pubmethodReadAsAsync<T>(IEnumerable<MediaTypeFormatter>, IFormatterLogger)

Overloaded. Returns a Task that will yield an object of the specified type <typeparamref name="T" /> from the content instance. (Defined by HttpContentExtensions.)

System_CAPS_pubmethodReadAsAsync<T>(IEnumerable<MediaTypeFormatter>, IFormatterLogger, CancellationToken)

Overloaded. Returns a Task that will yield an object of the specified type from the content instance.(Defined by HttpContentExtensions.)

System_CAPS_pubmethodReadAsFormDataAsync()

Overloaded. Asynchronously reads HTML form URL-encoded from an HttpContent instance and stores the results in a NameValueCollection object.(Defined by HttpContentFormDataExtensions.)

System_CAPS_pubmethodReadAsFormDataAsync(CancellationToken)

Overloaded. Asynchronously reads HTML form URL-encoded from an HttpContent instance and stores the results in a NameValueCollection object.(Defined by HttpContentFormDataExtensions.)

System_CAPS_pubmethodReadAsHttpRequestMessageAsync()

Overloaded. Reads the HttpContent as an HttpRequestMessage. (Defined by HttpContentMessageExtensions.)

System_CAPS_pubmethodReadAsHttpRequestMessageAsync(CancellationToken)

Overloaded. (Defined by HttpContentMessageExtensions.)

System_CAPS_pubmethodReadAsHttpRequestMessageAsync(String)

Overloaded. Reads the HttpContent as an HttpRequestMessage. (Defined by HttpContentMessageExtensions.)

System_CAPS_pubmethodReadAsHttpRequestMessageAsync(String, CancellationToken)

Overloaded. (Defined by HttpContentMessageExtensions.)

System_CAPS_pubmethodReadAsHttpRequestMessageAsync(String, Int32)

Overloaded. Reads the HttpContent as an HttpRequestMessage. (Defined by HttpContentMessageExtensions.)

System_CAPS_pubmethodReadAsHttpRequestMessageAsync(String, Int32, CancellationToken)

Overloaded. (Defined by HttpContentMessageExtensions.)

System_CAPS_pubmethodReadAsHttpRequestMessageAsync(String, Int32, Int32)

Overloaded. Reads the HttpContent as an HttpRequestMessage.(Defined by HttpContentMessageExtensions.)

System_CAPS_pubmethodReadAsHttpRequestMessageAsync(String, Int32, Int32, CancellationToken)

Overloaded. (Defined by HttpContentMessageExtensions.)

System_CAPS_pubmethodReadAsHttpResponseMessageAsync()

Overloaded. Reads the HttpContent as an HttpResponseMessage. (Defined by HttpContentMessageExtensions.)

System_CAPS_pubmethodReadAsHttpResponseMessageAsync(CancellationToken)

Overloaded. (Defined by HttpContentMessageExtensions.)

System_CAPS_pubmethodReadAsHttpResponseMessageAsync(Int32)

Overloaded. Reads the HttpContent as an HttpResponseMessage. (Defined by HttpContentMessageExtensions.)

System_CAPS_pubmethodReadAsHttpResponseMessageAsync(Int32, CancellationToken)

Overloaded. (Defined by HttpContentMessageExtensions.)

System_CAPS_pubmethodReadAsHttpResponseMessageAsync(Int32, Int32)

Overloaded. Reads the HttpContent as an HttpResponseMessage.(Defined by HttpContentMessageExtensions.)

System_CAPS_pubmethodReadAsHttpResponseMessageAsync(Int32, Int32, CancellationToken)

Overloaded. (Defined by HttpContentMessageExtensions.)

System_CAPS_pubmethodReadAsMultipartAsync()

Overloaded. Reads all body parts within a MIME multipart message and produces a set of HttpContent instances as a result.(Defined by HttpContentMultipartExtensions.)

System_CAPS_pubmethodReadAsMultipartAsync(CancellationToken)

Overloaded. Reads all body parts within a MIME multipart message and produces a set of HttpContent instances as a result.(Defined by HttpContentMultipartExtensions.)

System_CAPS_pubmethodReadAsMultipartAsync<T>(T)

Overloaded. Reads all body parts within a MIME multipart message and produces a set of HttpContent instances as a result using the streamProvider instance to determine where the contents of each body part is written.(Defined by HttpContentMultipartExtensions.)

System_CAPS_pubmethodReadAsMultipartAsync<T>(T, CancellationToken)

Overloaded. Reads all body parts within a MIME multipart message and produces a set of HttpContent instances as a result using the streamProvider instance to determine where the contents of each body part is written.(Defined by HttpContentMultipartExtensions.)

System_CAPS_pubmethodReadAsMultipartAsync<T>(T, Int32)

Overloaded. Reads all body parts within a MIME multipart message and produces a set of HttpContent instances as a result using the streamProvider instance to determine where the contents of each body part is written and bufferSize as read buffer size.(Defined by HttpContentMultipartExtensions.)

System_CAPS_pubmethodReadAsMultipartAsync<T>(T, Int32, CancellationToken)

Overloaded. Reads all body parts within a MIME multipart message and produces a set of HttpContent instances as a result using the streamProvider instance to determine where the contents of each body part is written and bufferSize as read buffer size.(Defined by HttpContentMultipartExtensions.)

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:
© 2015 Microsoft