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