Gets the content associated with this document as a
Stream.
The stream you get from this call must be disposed as soon as reading is complete.
- Namespace
- Statiq
.Common - Containing Type
- IDocumentExtensions
Syntax
public static Stream GetContentStream(this IDocument document)
Parameters
| Name | Type | Description |
|---|---|---|
| document | IDocument | The document. |
Return Value
| Type | Description |
|---|---|
| Stream | A Stream of the content associated with this document. |