Share via


HttpContentMultipartExtensions Class

Extension methods to read MIME multipart entities from HttpContent instances.

Inheritance Hierarchy

System.Object
  System.Net.Http.HttpContentMultipartExtensions

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

Syntax

'Declaration
<ExtensionAttribute> _
Public NotInheritable Class HttpContentMultipartExtensions
'Usage
public static class HttpContentMultipartExtensions
[ExtensionAttribute]
public ref class HttpContentMultipartExtensions abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type HttpContentMultipartExtensions =  class end
public final class HttpContentMultipartExtensions

Methods

  Name Description
Public methodStatic member IsMimeMultipartContent(HttpContent) Determines whether the specified content is MIME multipart content.
Public methodStatic member IsMimeMultipartContent(HttpContent, String) Determines whether the specified content is MIME multipart content with the specified subtype.
Public methodStatic member ReadAsMultipartAsync(HttpContent) Reads all body parts within a MIME multipart message and produces a set of HttpContent instances as a result.
Public methodStatic member 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.
Public methodStatic member 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.

Top

Thread Safety

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

See Also

Reference

System.Net.Http Namespace