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