- Namespace
- Statiq
.Common - Containing Type
- I
Document Factory Create Document Extensions
Syntax
public static TDocument CloneOrCreateDocument<TDocument>(this IDocumentFactory documentFactory, TDocument document, in NormalizedPath source, in NormalizedPath destination, IContentProvider contentProvider = null)
where TDocument : FactoryDocument, IDocument, new()
Type Parameters
| Name | Description |
|---|---|
| TDocument |
Parameters
| Name | Type | Description |
|---|---|---|
| documentFactory | IDocumentFactory | |
| document | TDocument | |
| source | NormalizedPath | |
| destination | NormalizedPath | |
| contentProvider | IContentProvider |
Return Value
| Type | Description |
|---|---|
| TDocument |