Clone(IDocument, NormalizedPath, NormalizedPath, Stream, string) Method
Clones this document.
Namespace
Statiq.Common
Containing Type
IDocumentCloneExtensions

Syntax

public static IDocument Clone(this IDocument document, in NormalizedPath source, in NormalizedPath destination, Stream stream, string mediaType = null)

Parameters

Name Type Description
document IDocument The document.
source NormalizedPath The new source. If this document already contains a source, then it's used and this is ignored.
destination NormalizedPath The new destination or null to keep the existing destination.
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.