Dispose Method
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Releases all resources used by the SiteConfigReadOnlyFreeThreaded object.
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 SiteConfigReadOnlyFreeThreaded
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 SiteConfigReadOnlyFreeThreaded. The Dispose method leaves the SiteConfigReadOnlyFreeThreaded in an unusable state. After calling Dispose, you must release all references to the SiteConfigReadOnlyFreeThreaded so the garbage collector can reclaim the memory that the SiteConfigReadOnlyFreeThreaded 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 SiteConfigReadOnlyFreeThreaded. Otherwise, the resources it is using will not be freed until the garbage collector calls the SiteConfigReadOnlyFreeThreaded 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
SiteConfigReadOnlyFreeThreaded Class