DB2Command.Dispose 方法
释放 DB2Command所使用的资源。
重载列表
| 名称 | 描述 |
|---|---|
| 处置 (布尔值) | 释放 DB2Command 对象所使用的非受管资源和 (可选) 受管资源。 |
| Dispose() | 继承自 Component。 |
示例
[Visual Basic , C#] 以下示例创建 DB2®命令 ,然后对其进行处理。
注: [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();
}