Method CloseAsync
CloseAsync(bool, CancellationToken)
Closes the document
Declaration
Task CloseAsync(bool force, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | force | Force closing of dirty document without user interaction |
| CancellationToken | cancellationToken | The optional cancellation token |
Returns
| Type | Description |
|---|---|
| Task | A task that represents the work |