## StreamContent class

表示基于流的内容。

```csharp
public class StreamContent : Content
```

## 构造函数

| 姓名 | 描述 |
| --- | --- |
| [StreamContent](streamcontent/)(Stream) | 初始化一个新的实例`StreamContent`类. |

## 特性

| 姓名 | 描述 |
| --- | --- |
| [Headers](../../aspose.html.net/content/headers/) { get; } | 获取 HTTP 内容标头。 |

## 方法

| 姓名 | 描述 |
| --- | --- |
| [Dispose](../../aspose.html.net/content/dispose/)() | 执行与释放、释放或重置非托管资源相关的应用程序定义的任务。 |
| [ReadAsByteArray](../../aspose.html.net/content/readasbytearray/)() | 序列化 HTTP 内容并返回表示内容的字节数组。 |
| [ReadAsStream](../../aspose.html.net/content/readasstream/)() | 序列化 HTTP 内容并返回表示内容的流。 |
| [ReadAsString](../../aspose.html.net/content/readasstring/)() | 序列化 HTTP 内容并返回表示内容的字符串。 |

### 也可以看看

* class [Content](../content/)
* 命名空间 [Aspose.Html.Net](../../aspose.html.net/)
* 部件 [Aspose.HTML](../../)


