Jaa


Dispose Method

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

Use this method to release resources by the ExpressionEvaluator object.

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

Syntax

'Declaration
Public Sub Dispose
'Usage
Dim instance As ExpressionEvaluator

instance.Dispose()
public void Dispose()
public:
virtual void Dispose() sealed
public final function Dispose()

Implements

IDisposable..::.Dispose()()()

Remarks

Releases all resources used by the current module.

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.

Derived classes that override Init should always call this method using base.Init() after performing their own initialization. If this class is not sealed, derived classes can override this method to dispose of their own resources. See the topic "Implementing a Dispose Method" in the .NET Framework SDK documentation for more details.

Permissions

See Also

Reference

ExpressionEvaluator Class

ExpressionEvaluator Members

Dispose Overload

Microsoft.CommerceServer.Runtime.Targeting Namespace