共用方式為


DtsContainer.Dispose 方法

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

命名空間:  Microsoft.SqlServer.Dts.Runtime
組件:  Microsoft.SqlServer.ManagedDTS (在 Microsoft.SqlServer.ManagedDTS.dll 中)

語法

'宣告
Public Sub Dispose
'用途
Dim instance As DtsContainer

instance.Dispose()
public void Dispose()
public:
virtual void Dispose() sealed
abstract Dispose : unit -> unit  
override Dispose : unit -> unit
public final function Dispose()

實作

IDisposable.Dispose()

備註

Use the Dispose method when creating a custom object that inherits from DtsContainer, and that object needs to free resources. For more information, see IDisposable.Dispose.

範例

The following code sample shows how to call Dispose to free resources.

Dispose();
Dispose()

請參閱

參考

DtsContainer 類別

Microsoft.SqlServer.Dts.Runtime 命名空間