Share via


Variable.Dispose Method

This method is inherited from the IDisposable.Dispose method, which is a mechanism to explicitly tell an object to perform cleanup.

Namespace:  Microsoft.SqlServer.Dts.Runtime
Assembly:  Microsoft.SqlServer.ManagedDTS (in Microsoft.SqlServer.ManagedDTS.dll)

Syntax

'Declaration
Public Sub Dispose
'Usage
Dim instance As Variable

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

Implements

IDisposable.Dispose()

Remarks

Dispose is an optional mechanism that should be used in specific cases that require it.

Examples

The following code sample shows how to dispose of variable resources.

Dispose();
Dispose()

See Also

Reference

Variable Class

Microsoft.SqlServer.Dts.Runtime Namespace