CreateDocument<TDocument>(IExecutionContext, Stream, string) Method

Syntax

public static TDocument CreateDocument<TDocument>(this IExecutionContext context, Stream stream, string mediaType = null) 
    where TDocument : FactoryDocument, IDocument, new()

Type Parameters

Name Description
TDocument

Parameters

Name Type Description
context IExecutionContext
stream Stream
mediaType string

Return Value

Type Description
TDocument