Jaa


Dispose Method

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Implement Idisposable. This method is not virtual by design. A derived class should not override this method. Calls Dispose(true) to do the real work.

Namespace:  Microsoft.CommerceServer.Marketing
Assembly:  Microsoft.CommerceServer.Marketing.DataManagement (in Microsoft.CommerceServer.Marketing.DataManagement.dll)

Syntax

'Declaration
Public Sub Dispose
'Usage
Dim instance As DataManager

instance.Dispose()
public void Dispose()
public:
virtual void Dispose() sealed
public final function Dispose()

Implements

IDisposable..::.Dispose()()()

Remarks

Dispose all managed and unmanaged resources.

Call Dispose when you are finished using the DataManager. The Dispose method leaves the DataManager in an unusable state. After calling Dispose, you must release all references to the DataManager so the garbage collector can reclaim the memory that the DataManager 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 DataManager. Otherwise, the resources it is using will not be freed until the garbage collector calls the DataManager object's Finalize method.

Permissions

See Also

Reference

DataManager Class

DataManager Members

Microsoft.CommerceServer.Marketing Namespace