- Namespace
- Statiq
.Common - Containing Type
- I
Execution Context Create Document From Stream Extensions
Syntax
public static TDocument CloneOrCreateDocument<TDocument>(this IExecutionContext context, TDocument document, in NormalizedPath source, in NormalizedPath destination, IEnumerable<KeyValuePair<string, object>> items, Stream stream, string mediaType = null)
where TDocument : FactoryDocument, IDocument, new()
Type Parameters
| Name | Description |
|---|---|
| TDocument |
Parameters
| Name | Type | Description |
|---|---|---|
| context | IExecutionContext | |
| document | TDocument | |
| source | NormalizedPath | |
| destination | NormalizedPath | |
| items | IEnumerable |
|
| stream | Stream | |
| mediaType | string |
Return Value
| Type | Description |
|---|---|
| TDocument |