Dispose Method
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Releases the resources used by this object.
Namespace: Microsoft.CommerceServer.Orders
Assembly: Microsoft.CommerceServer.Orders.DataManagement (in Microsoft.CommerceServer.Orders.DataManagement.dll)
Syntax
'Declaration
Public Sub Dispose
'Usage
Dim instance As PaymentMethodRouterPipelineComponent
instance.Dispose()
public void Dispose()
public:
virtual void Dispose() sealed
public final function Dispose()
Implements
Remarks
Call Dispose when you are finished using the PaymentMethodRouterPipelineComponent. The Dispose method leaves the PaymentMethodRouterPipelineComponent in an unusable state. After calling Dispose, you must release all references to the PaymentMethodRouterPipelineComponent so the garbage collector can reclaim the memory that the PaymentMethodRouterPipelineComponent 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 PaymentMethodRouterPipelineComponent. Otherwise, the resources it is using will not be freed until the garbage collector calls the PaymentMethodRouterPipelineComponent 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
PaymentMethodRouterPipelineComponent Class