Share via


ConnectionContext.Dispose Method

 

Releases resources used by a connection.

Namespace:   Microsoft.Data.Tools.Schema.Sql.UnitTesting
Assembly:  Microsoft.Data.Tools.Schema.Sql.UnitTesting (in Microsoft.Data.Tools.Schema.Sql.UnitTesting.dll)

Overload List

Name Description
System_CAPS_pubmethod Dispose()

Releases resources used by a connection.

System_CAPS_protmethod Dispose(Boolean)

Releases the unmanaged resources used by the connection and, optionally, releases the managed resources.

See Also

ConnectionContext Class
Microsoft.Data.Tools.Schema.Sql.UnitTesting Namespace

Return to top

ConnectionContext.Dispose Method ()

Releases resources used by a connection.

Syntax

public void Dispose()
public:
virtual void Dispose() sealed
abstract Dispose : unit -> unit
override Dispose : unit -> unit
Public Sub Dispose

Implements

IDisposable.Dispose()

Return to top

ConnectionContext.Dispose Method (Boolean)

Releases the unmanaged resources used by the connection and, optionally, releases the managed resources.

Syntax

protected virtual void Dispose(
    bool disposing
)
protected:
virtual void Dispose(
    bool disposing
)
abstract Dispose : 
        disposing:bool -> unit
override Dispose : 
        disposing:bool -> unit
Protected Overridable Sub Dispose (
    disposing As Boolean
)

Parameters

  • disposing
    Type: System.Boolean

    Specify true to release both managed and unmanaged resources; false to release only unmanaged resources.

Return to top