IAdoDbConnection.CloseAsync(CancellationToken cancellationToken) Method
.NET Standard 2.x
Asynchronously closes the connection to the database.
Namespace: SnapObjects.Data
Assembly: SnapObjects.Data.dll
Syntax
Task<bool> CloseAsync(CancellationToken cancellationToken);
Parameters
cancellationToken
CancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
Task<bool>
Returns a task that represents the asynchronous operation.
Applies to
.NET Standard
2.x