CloneOrCreateDocument<TDocument>(IExecutionContext, TDocument, NormalizedPath, IEnumerable<KeyValuePair<string, object>>, Stream, string) Method

Syntax

public static TDocument CloneOrCreateDocument<TDocument>(this IExecutionContext context, TDocument document, 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
destination NormalizedPath
items IEnumerable<KeyValuePair<string, object>>
stream Stream
mediaType string

Return Value

Type Description
TDocument