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