## StreamContent class

Represents content based on a stream.

```csharp
public class StreamContent : Content
```

## Constructors

| Name | Description |
| --- | --- |
| [StreamContent](streamcontent/#constructor)(*Stream*) | Initializes a new instance of the `StreamContent` class. |
| [StreamContent](streamcontent/#constructor_1)(*Stream, CancellationToken*) | Initializes a new instance of the `StreamContent` class. |

## Properties

| Name | Description |
| --- | --- |
| [Headers](../../aspose.html.net/content/headers/) { get; } | Gets the HTTP content headers. |

## Methods

| Name | Description |
| --- | --- |
| [Dispose](../../aspose.html.net/content/dispose/)() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
| [ReadAsByteArray](../../aspose.html.net/content/readasbytearray/)() | Serialize the HTTP content and return a byte array that represents the content. |
| [ReadAsByteArray](../../aspose.html.net/content/readasbytearray/)(*CancellationToken*) | Serialize the HTTP content and return a byte array that represents the content. |
| [ReadAsStream](../../aspose.html.net/content/readasstream/)() | Serialize the HTTP content and return a stream that represents the content. |
| [ReadAsStream](../../aspose.html.net/content/readasstream/)(*CancellationToken*) | Serialize the HTTP content and return a stream that represents the content. |
| [ReadAsString](../../aspose.html.net/content/readasstring/)() | Serialize the HTTP content and return a string that represents the content. |
| [ReadAsString](../../aspose.html.net/content/readasstring/)(*CancellationToken*) | Serialize the HTTP content and return a string that represents the content. |

### See Also

* class [Content](../content/)
* namespace [Aspose.Html.Net](../../aspose.html.net/)
* assembly [Aspose.HTML](../../)
