Dispose Method
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Releases the unmanaged resources used by the GlobalConfigFreeThreaded 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 GlobalConfigFreeThreaded
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 GlobalConfigFreeThreaded. The Dispose method leaves the GlobalConfigFreeThreaded in an unusable state. After calling Dispose, you must release all references to the GlobalConfigFreeThreaded so the garbage collector can reclaim the memory that the GlobalConfigFreeThreaded 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 GlobalConfigFreeThreaded. Otherwise, the resources it is using will not be freed until the garbage collector calls the GlobalConfigFreeThreaded object's Finalize method.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
GlobalConfigFreeThreaded Class