StreamContent StreamContent StreamContent StreamContent Class

Definition

Provides HTTP content based on a stream.

public ref class StreamContent : System::Net::Http::HttpContent
public class StreamContent : System.Net.Http.HttpContent
type StreamContent = class
    inherit HttpContent
Public Class StreamContent
Inherits HttpContent
Inheritance
StreamContentStreamContentStreamContentStreamContent

Constructors

StreamContent(Stream) StreamContent(Stream) StreamContent(Stream) StreamContent(Stream)

Creates a new instance of the StreamContent class.

StreamContent(Stream, Int32) StreamContent(Stream, Int32) StreamContent(Stream, Int32) StreamContent(Stream, Int32)

Creates a new instance of the StreamContent class.

Methods

CopyToAsync(Stream) CopyToAsync(Stream) CopyToAsync(Stream) CopyToAsync(Stream)

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

(Inherited from HttpContent)
CopyToAsync(Stream, TransportContext) CopyToAsync(Stream, TransportContext) CopyToAsync(Stream, TransportContext) CopyToAsync(Stream, TransportContext)

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

(Inherited from HttpContent)
CreateContentReadStreamAsync() CreateContentReadStreamAsync() CreateContentReadStreamAsync() CreateContentReadStreamAsync()

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

Dispose() Dispose() Dispose() Dispose()

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

(Inherited from HttpContent)
Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

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

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
LoadIntoBufferAsync() LoadIntoBufferAsync() LoadIntoBufferAsync() LoadIntoBufferAsync()

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

(Inherited from HttpContent)
LoadIntoBufferAsync(Int64) LoadIntoBufferAsync(Int64) LoadIntoBufferAsync(Int64) LoadIntoBufferAsync(Int64)

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

(Inherited from HttpContent)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ReadAsByteArrayAsync() ReadAsByteArrayAsync() ReadAsByteArrayAsync() ReadAsByteArrayAsync()

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

(Inherited from HttpContent)
ReadAsStreamAsync() ReadAsStreamAsync() ReadAsStreamAsync() ReadAsStreamAsync()

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

(Inherited from HttpContent)
ReadAsStringAsync() ReadAsStringAsync() ReadAsStringAsync() ReadAsStringAsync()

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

(Inherited from HttpContent)
SerializeToStreamAsync(Stream, TransportContext) SerializeToStreamAsync(Stream, TransportContext) SerializeToStreamAsync(Stream, TransportContext) SerializeToStreamAsync(Stream, TransportContext)

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

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
TryComputeLength(Int64) TryComputeLength(Int64) TryComputeLength(Int64) TryComputeLength(Int64)

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

Properties

Headers Headers Headers Headers

Gets the HTTP content headers as defined in RFC 2616.

(Inherited from HttpContent)

Applies to