Clones this document.
- Namespace
- Statiq
.Common - Containing Type
- I
Document Clone Extensions
Syntax
public static IDocument Clone(this IDocument document, Stream stream, string mediaType = null)
Parameters
| Name | Type | Description |
|---|---|---|
| document | IDocument | The document. |
| stream | Stream | A stream that contains the new content. |
| mediaType | string | The media type of the content. |
Return Value
| Type | Description |
|---|---|
| IDocument | A new document of the same type as this document. |