Clones this document.
- Namespace
- Statiq
.Common - Containing Type
- Document
<TDocument> - Implements
Syntax
public IDocument Clone(NormalizedPath source, NormalizedPath destination, IEnumerable<KeyValuePair<string, object>> items, IContentProvider contentProvider)
Parameters
Name | Type | Description |
---|---|---|
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. |
items | IEnumerable |
New metadata items or null not to add any new metadata. |
contentProvider | IContentProvider | The new content provider or null to keep the existing content provider. |
Return Value
Type | Description |
---|---|
IDocument | A new document of the same type as this document. |