Share via


Dispose Method

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

Releases the unmanaged resources used by the SiteConfigFreeThreaded class

Namespace:  Microsoft.CommerceServer.Interop.Configuration
Assembly:  Microsoft.CommerceServer.Interop.Configuration.MSCSCfg (in Microsoft.CommerceServer.Interop.Configuration.MSCSCfg.dll)

Syntax

'Declaration
Public Sub Dispose
'Usage
Dim instance As SiteConfigFreeThreaded

instance.Dispose()
public void Dispose()
public:
void Dispose()
public function Dispose()

Remarks

Release the unmanaged resources used by this object.

Dispose invokes the protected Dispose(Boolean) method with the disposing parameter set to true.

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

Permissions

See Also

Reference

SiteConfigFreeThreaded Class

SiteConfigFreeThreaded Members

Dispose Overload

Microsoft.CommerceServer.Interop.Configuration Namespace