다음을 통해 공유


Dispose Method

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

Releases the unmanaged resources used by the GlobalConfig2FreeThreaded 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 GlobalConfig2FreeThreaded

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

Permissions

See Also

Reference

GlobalConfig2FreeThreaded Class

GlobalConfig2FreeThreaded Members

Dispose Overload

Microsoft.CommerceServer.Interop.Configuration Namespace