dotConnect for Google BigQuery Documentation
Devart.Data Namespace / SqlShimConnection Class / Close Method

On this page
    Close Method (SqlShimConnection)
    On this page
    Closes the connection to Google BigQuery. This is the preferred method of closing any open connection.
    Syntax
    'Declaration
     
    Public Overrides Sub Close() 
    public override void Close()
    Remarks
    The Close method rolls back any pending transactions started with Devart.Data.BigQuery.BigQueryConnection.BeginTransaction. It then releases the connection to the connection pool, or closes the connection if connection pooling is disabled.

    Note that you must manually close all connections opened by the application. If a BigQueryConnection goes out of scope, it is not closed automatically till the application shuts down.

    An application can call Close more than one time without generating an exception.

    See Also