MultipartContent Class
MultipartContent class
Represents a multipart/* content.
public class MultipartContent : Content, IEnumerable<Content>
Constructors
| Name | Description |
|---|
| MultipartContent() | Create a new instance of the MultipartContent class. |
| MultipartContent(string) | Create a new instance of the MultipartContent class with subtype. |
| MultipartContent(string, string) | Create a new instance of the MultipartContent class with subtype and boundary. |
Properties
| Name | Description |
|---|
| Headers { get; } | Gets the HTTP content headers. |
Methods
| Name | Description |
|---|
| virtual Add(Content) | Add a new content to the MultipartContent |
| Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
| GetEnumerator() | Returns an enumerator that iterates through a collection. |
| ReadAsByteArray() | Serialize the HTTP content and return a byte array that represents the content. |
| ReadAsStream() | Serialize the HTTP content and return a stream that represents the content. |
| ReadAsString() | Serialize the HTTP content and return a string that represents the content. |
See Also