## MultipartContent class

Represents a multipart/* content.

```java
public class MultipartContent : Content, IEnumerable<Content>
```

## Constructors

| Name | Description |
| --- | --- |
| [MultipartContent](multipartcontent/#constructor)() | Create a new instance of the `MultipartContent` class. |
| [MultipartContent](multipartcontent/#constructor_1)(String) | Create a new instance of the `MultipartContent` class with subtype. |
| [MultipartContent](multipartcontent/#constructor_2)(String, String) | Create a new instance of the `MultipartContent` class with subtype and boundary. |

## Properties

| Name | Description |
| --- | --- |
| [getHeaders](../../com.aspose.html.net/content/headers/) Gets the HTTP content headers. |

## Methods

| Name | Description |
| --- | --- |
| [add](../../com.aspose.html.net/multipartcontent/add/)(Content) | Add a new content to the `MultipartContent` |
| [dispose](../../com.aspose.html.net/content/dispose/)() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
| [getEnumerator](../../com.aspose.html.net/multipartcontent/getenumerator/)() | Returns an enumerator that iterates through a collection. |
| [readAsByteArray](../../com.aspose.html.net/content/readasbytearray/)() | Serialize the HTTP content and return a byte array that represents the content. |
| [readAsStream](../../com.aspose.html.net/content/readasstream/)() | Serialize the HTTP content and return a stream that represents the content. |
| [readAsString](../../com.aspose.html.net/content/readasString/)() | Serialize the HTTP content and return a String that represents the content. |

### See Also

* class [Content](../content/)
* package [com.aspose.html.net](../../com.aspose.html.net/)
* package [Aspose.HTML](../../)
