Clones this document.
- Namespace
- Statiq
.Common - Containing Type
- I
Document Clone Extensions
Syntax
public static IDocument Clone(this IDocument document, IEnumerable<KeyValuePair<string, object>> items, IContentProvider contentProvider = null)
Parameters
Name | Type | Description |
---|---|---|
document | IDocument | The document. |
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. |