Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Provides a collection of HttpContent objects that get serialized using the multipart/* content type specification.
Inheritance Hierarchy
System.Object
System.Net.Http.HttpContent
System.Net.Http.MultipartContent
System.Net.Http.MultipartFormDataContent
Namespace: System.Net.Http
Assembly: System.Net.Http (in System.Net.Http.dll)
Syntax
'Declaration
Public Class MultipartContent _
Inherits HttpContent _
Implements IEnumerable(Of HttpContent), IEnumerable
'Usage
Dim instance As MultipartContent
public class MultipartContent : HttpContent,
IEnumerable<HttpContent>, IEnumerable
public ref class MultipartContent : public HttpContent,
IEnumerable<HttpContent^>, IEnumerable
type MultipartContent =
class
inherit HttpContent
interface IEnumerable<HttpContent>
interface IEnumerable
end
public class MultipartContent extends HttpContent implements IEnumerable<HttpContent>, IEnumerable
The MultipartContent type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
![]() |
MultipartContent() | Initializes a new instance of the MultipartContent class. |
![]() |
MultipartContent(String) | Initializes a new instance of the MultipartContent class. |
![]() |
MultipartContent(String, String) | Initializes a new instance of the MultipartContent class. |
Top
Properties
| Name | Description | |
|---|---|---|
![]() |
Headers | Gets the HTTP content headers as defined in RFC 2616. (Inherited from HttpContent.) |
Top
Methods
| Name | Description | |
|---|---|---|
![]() |
Add | |
![]() |
CopyToAsync(Stream) | Write the HTTP content to a stream as an asynchronous operation. (Inherited from HttpContent.) |
![]() |
CopyToAsync(Stream, TransportContext) | Write the HTTP content to a stream as an asynchronous operation. (Inherited from HttpContent.) |
![]() |
CreateContentReadStreamAsync | (Inherited from HttpContent.) |
![]() |
Dispose() | Releases the unmanaged resources and disposes of the managed resources used by the HttpContent. (Inherited from HttpContent.) |
![]() |
Dispose(Boolean) | (Overrides HttpContent.Dispose(Boolean).) |
![]() |
Equals | (Inherited from Object.) |
![]() |
Finalize | (Inherited from Object.) |
![]() |
GetEnumerator | |
![]() |
GetHashCode | (Inherited from Object.) |
![]() |
GetType | (Inherited from Object.) |
![]() |
LoadIntoBufferAsync() | Serialize the HTTP content to a memory buffer as an asynchronous operation. (Inherited from HttpContent.) |
![]() |
LoadIntoBufferAsync(Int64) | (Inherited from HttpContent.) |
![]() |
MemberwiseClone | (Inherited from Object.) |
![]() |
ReadAsByteArrayAsync | (Inherited from HttpContent.) |
![]() |
ReadAsStreamAsync | (Inherited from HttpContent.) |
![]() |
ReadAsStringAsync | (Inherited from HttpContent.) |
![]() |
SerializeToStreamAsync | (Overrides HttpContent.SerializeToStreamAsync(Stream, TransportContext).) |
![]() |
ToString | (Inherited from Object.) |
![]() |
TryComputeLength | (Overrides HttpContent.TryComputeLength(Int64).) |
Top
Explicit Interface Implementations
| Name | Description | |
|---|---|---|
![]() ![]() |
IEnumerable.GetEnumerator |
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.
.gif)
.gif)
.gif)
.gif)
.gif)