HttpContentMultipartExtensions::ReadAsMultipartAsync Method
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | ReadAsMultipartAsync(HttpContent^) | Reads all body parts within a MIME multipart message and produces a set of HttpContent instances as a result. |
![]() ![]() | ReadAsMultipartAsync(HttpContent^, CancellationToken) | Reads all body parts within a MIME multipart message and produces a set of HttpContent instances as a result. |
![]() ![]() | ReadAsMultipartAsync<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. |
![]() ![]() | ReadAsMultipartAsync<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. |
![]() ![]() | ReadAsMultipartAsync<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. |
![]() ![]() | ReadAsMultipartAsync<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. |
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.
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.
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.
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.
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.
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.

