ViewerView Method (ViewOptions, CancellationToken)
Creates view of all document pages.

Namespace: GroupDocs.Viewer
Assembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 22.5
Syntax
public void View(
	ViewOptions options,
	CancellationToken cancellationToken
)

Parameters

options
Type: GroupDocs.Viewer.OptionsViewOptions
The view options.
cancellationToken
Type: System.ThreadingCancellationToken
Cancellation token to send a request to cancel current view process.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when options is null.
PasswordRequiredExceptionThrown when password is required to open the document.
IncorrectPasswordExceptionThrown when password that was specified is incorrect.
GroupDocsViewerExceptionThrown when attachment could not be found.
Remarks
Learn more
See Also