Share via


Dispose Method

Releases all resources used by the current instance of the SqlCeChangeTracking class.

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)

Syntax

'Declaration
Public Sub Dispose
'Usage
Dim instance As SqlCeChangeTracking

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

Call Dispose when you are finished using the SqlCeChangeTracking. The Dispose method leaves the SqlCeChangeTracking in an unusable state. After calling Dispose, you must release all references to the SqlCeChangeTracking so the garbage collector can reclaim the memory that the SqlCeChangeTracking was occupying. For more information, see Cleaning Up Unmanaged Resources and Implementing a Dispose Method.

Note

Always call Dispose before you release your last reference to the SqlCeChangeTracking. Otherwise, the resources it is using will not be freed until the garbage collector calls the SqlCeChangeTracking object's Finalize method.

See Also

Reference

SqlCeChangeTracking Class

SqlCeChangeTracking Members

Dispose Overload

System.Data.SqlServerCe Namespace