DB2 V9.7 for Linux, UNIX, and Windows

DB2Command.Dispose 方法

释放 DB2Command 所使用的资源。

重载列表

名称 描述
Dispose(Boolean) 释放由 DB2Command 对象使用的不受管资源和受管资源,后者是可选的。
Dispose() 继承自 Component。

示例

[Visual Basic, C#] 以下示例将创建 DB2Command,然后对其进行处理。

注: [Visual Basic, C#] 此示例演示如何使用 Dispose 的某个重载版本。有关其他可用的示例,请参阅各个重载主题。
[Visual Basic]
Public Sub DB2CommandHereAndGone()
    Dim myCommand As New DB2Command()
    myCommand.Dispose()
End Sub

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