释放 DB2CommandBuilder 所使用的资源。
| 名称 | 描述 |
|---|---|
| Dispose(Boolean) | 释放由 DB2®CommandBuilder 使用的非受管资源和受管资源,后者为可选。 |
| Dispose() | 继承自 Component。 |
[Visual Basic, C#] 以下示例将创建 DB2CommandBuilder,然后对其进行处理。
[Visual Basic]
Public Sub DB2CommandBuilderHereAndGone()
Dim myCommandBuilder As New DB2CommandBuilder()
myCommandBuilder.Dispose()
End Sub
[C#]
public void DB2CommandBuilderHereAndGone() {
DB2CommandBuilder myCommandBuilder = new DB2CommandBuilder();
myCommandBuilder.Dispose();
}