Clone(IDocument, IEnumerable<KeyValuePair<string, object>>, Stream, string) Method
Clones this document.
Namespace
Statiq.Common
Containing Type
IDocumentCloneExtensions

Syntax

public static IDocument Clone(this IDocument document, IEnumerable<KeyValuePair<string, object>> items, Stream stream, string mediaType = null)

Parameters

Name Type Description
document IDocument The document.
items IEnumerable<KeyValuePair<string, object>> New metadata items or null not to add any new metadata.
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.