Поделиться через


Dispose Method (Boolean)

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

Releases the unmanaged resources used by this object and optionally releases the managed resources.

Namespace:  Microsoft.CommerceServer.Runtime
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Protected Overridable Sub Dispose ( _
    disposing As Boolean _
)
'Usage
Dim disposing As Boolean

Me.Dispose(disposing)
protected virtual void Dispose(
    bool disposing
)
protected:
virtual void Dispose(
    bool disposing
)
protected function Dispose(
    disposing : boolean
)

Parameters

  • disposing
    Type: System..::.Boolean
    true if this was called from the Dispose method, false if called from the finalizer.

Remarks

Use this method to release the unmanaged resources used by this object and optionally release the managed resources.

Dispose(bool) executes in two distinct scenarios. If disposing equals true, the method has been called directly or indirectly by a user's code. Managed and unmanaged resources can be disposed. If disposing equals false, the method has been called by the runtime from inside the finalizer and you should not reference other objects. Only unmanaged resources can be disposed.

If this class is not sealed, derived classes can override this method to dispose of their resources. For more information, see the .NET Framework SDK documentation for implementing a Dispose method.

Permissions

See Also

Reference

TicketBase Class

TicketBase Members

Dispose Overload

Microsoft.CommerceServer.Runtime Namespace