Method CreateDocumentAsync
CreateDocumentAsync(bool, CancellationToken)
Creates a new document
Declaration
Task<IDocument?> CreateDocumentAsync(bool allowUserInteraction, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | allowUserInteraction | A value indicating whether user interaction is allowed |
| CancellationToken | cancellationToken | The optional cancellation token |
Returns
| Type | Description |
|---|---|
| Task<IDocument> |