DB2 10.5 for Linux, UNIX, and Windows

DB2Command.Dispose Method

Releases the resources used by the DB2Command.

Overload list

Name Description
Dispose(Boolean) Releases the unmanaged and, optionally, the managed resources used by the DB2Command object.
Dispose() Inherited from Component.

Example

[Visual Basic, C#] The following example creates a DB2®Command and then disposes of it.

Note: [Visual Basic, C#] This example shows how to use one of the overloaded versions of Dispose. For other examples that might be available, see the individual overload topics.
[Visual Basic]
Public Sub DB2CommandHereAndGone()
    Dim myCommand As New DB2Command()
    myCommand.Dispose()
End Sub

[C#]
public void DB2CommandHereAndGone()
{
   DB2Command myCommand = new DB2Command();
   myCommand.Dispose();
}