Viewer Constructor (FuncStream, ViewerSettings)

Note: This API is now obsolete.

Initializes new instance of Viewer class.

Namespace: GroupDocs.Viewer
Assembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 21.2
Syntax
[ObsoleteAttribute("This constructor is obsolete. Use constructor that accepts stream instead of stream factory.")]
public Viewer(
	Func<Stream> getFileStream,
	ViewerSettings settings
)

Parameters

getFileStream
Type: GroupDocs.Viewer.CommonFuncStream
The method that returns readable stream.
settings
Type: GroupDocs.ViewerViewerSettings
The Viewer settings.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when getFileStream is null.
ArgumentNullExceptionThrown when settings is null.
Remarks
Learn more
See Also