Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HttpContentMultipartExtensions::ReadAsMultipartAsync Method

 

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

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticReadAsMultipartAsync(HttpContent^)

Reads all body parts within a MIME multipart message and produces a set of HttpContent instances as a result.

System_CAPS_pubmethodSystem_CAPS_staticReadAsMultipartAsync(HttpContent^, CancellationToken)

Reads all body parts within a MIME multipart message and produces a set of HttpContent instances as a result.

System_CAPS_pubmethodSystem_CAPS_staticReadAsMultipartAsync<T>(HttpContent^, T)

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.

System_CAPS_pubmethodSystem_CAPS_staticReadAsMultipartAsync<T>(HttpContent^, T, CancellationToken)

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.

System_CAPS_pubmethodSystem_CAPS_staticReadAsMultipartAsync<T>(HttpContent^, T, Int32)

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.

System_CAPS_pubmethodSystem_CAPS_staticReadAsMultipartAsync<T>(HttpContent^, T, Int32, CancellationToken)

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.

Return to top

HttpContentMultipartExtensions::ReadAsMultipartAsync Method (HttpContent^)

Reads all body parts within a MIME multipart message and produces a set of HttpContent instances as a result.

public:
[ExtensionAttribute]
static Task<MultipartMemoryStreamProvider^>^ ReadAsMultipartAsync(
	HttpContent^ content
)

Parameters

content
Type: System.Net.Http::HttpContent^

An existing HttpContent instance to use for the object's content.

Return Value

Type: System.Threading.Tasks::Task<MultipartMemoryStreamProvider^>^

A Task<TResult> representing the tasks of getting the collection of HttpContent instances where each instance represents a body part.

Return to top

HttpContentMultipartExtensions::ReadAsMultipartAsync Method (HttpContent^, CancellationToken)

Reads all body parts within a MIME multipart message and produces a set of HttpContent instances as a result.

public:
[ExtensionAttribute]
static Task<MultipartMemoryStreamProvider^>^ ReadAsMultipartAsync(
	HttpContent^ content,
	CancellationToken cancellationToken
)

Parameters

content
Type: System.Net.Http::HttpContent^

An existing HttpContent instance to use for the object's content.

cancellationToken
Type: System.Threading::CancellationToken

The token to cancel the operation.

Return Value

Type: System.Threading.Tasks::Task<MultipartMemoryStreamProvider^>^

A Task<TResult> representing the tasks of getting the collection of HttpContent instances where each instance represents a body part.

Return to top

HttpContentMultipartExtensions::ReadAsMultipartAsync<T> Method (HttpContent^, T)

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.

public:
generic<typename T>
where T : MultipartStreamProvider
[ExtensionAttribute]
static Task<T>^ ReadAsMultipartAsync(
	HttpContent^ content,
	T streamProvider
)

Parameters

content
Type: System.Net.Http::HttpContent^

An existing HttpContent instance to use for the object's content.

streamProvider
Type: T

A stream provider providing output streams for where to write body parts as they are parsed.

Return Value

Type: System.Threading.Tasks::Task<T>^

A Task<TResult> representing the tasks of getting the collection of HttpContent instances where each instance represents a body part.

Type Parameters

T

The type of the MIME multipart.

Return to top

HttpContentMultipartExtensions::ReadAsMultipartAsync<T> Method (HttpContent^, T, CancellationToken)

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.

public:
generic<typename T>
where T : MultipartStreamProvider
[ExtensionAttribute]
static Task<T>^ ReadAsMultipartAsync(
	HttpContent^ content,
	T streamProvider,
	CancellationToken cancellationToken
)

Parameters

content
Type: System.Net.Http::HttpContent^

An existing HttpContent instance to use for the object's content.

streamProvider
Type: T

A stream provider providing output streams for where to write body parts as they are parsed.

cancellationToken
Type: System.Threading::CancellationToken

The token to cancel the operation.

Return Value

Type: System.Threading.Tasks::Task<T>^

A Task<TResult> representing the tasks of getting the collection of HttpContent instances where each instance represents a body part.

Type Parameters

T

The type of the MIME multipart.

Return to top

HttpContentMultipartExtensions::ReadAsMultipartAsync<T> Method (HttpContent^, T, Int32)

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.

public:
generic<typename T>
where T : MultipartStreamProvider
[ExtensionAttribute]
static Task<T>^ ReadAsMultipartAsync(
	HttpContent^ content,
	T streamProvider,
	int bufferSize
)

Parameters

content
Type: System.Net.Http::HttpContent^

An existing HttpContent instance to use for the object's content.

streamProvider
Type: T

A stream provider providing output streams for where to write body parts as they are parsed.

bufferSize
Type: System::Int32

Size of the buffer used to read the contents.

Return Value

Type: System.Threading.Tasks::Task<T>^

A Task<TResult> representing the tasks of getting the collection of HttpContent instances where each instance represents a body part.

Type Parameters

T

The type of the MIME multipart.

Return to top

HttpContentMultipartExtensions::ReadAsMultipartAsync<T> Method (HttpContent^, T, Int32, CancellationToken)

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.

public:
generic<typename T>
where T : MultipartStreamProvider
[ExtensionAttribute]
[DebuggerStepThroughAttribute]
static Task<T>^ ReadAsMultipartAsync(
	HttpContent^ content,
	T streamProvider,
	int bufferSize,
	CancellationToken cancellationToken
)

Parameters

content
Type: System.Net.Http::HttpContent^

An existing HttpContent instance to use for the object's content.

streamProvider
Type: T

A stream provider providing output streams for where to write body parts as they are parsed.

bufferSize
Type: System::Int32

Size of the buffer used to read the contents.

cancellationToken
Type: System.Threading::CancellationToken

The token to cancel the operation.

Return Value

Type: System.Threading.Tasks::Task<T>^

A Task<TResult> representing the tasks of getting the collection of HttpContent instances where each instance represents a body part.

Type Parameters

T

The type of the MIME multipart.

Return to top
Show: