Share via


ExpressionEvaluator.FlushExpr Method (PIA)

Use this method to remove the specified expression from the expression cache.

Definition

[Visual Basic .NET]

Imports Microsoft.CommerceServer.Interop.Targeting
…
Public Sub FlushExpr(nExprID As Integer)

[C#]

using Microsoft.CommerceServer.Interop.Targeting;
…
public void FlushExpr(intnExprID);

Parameters

[Visual Basic .NET]

  • nExprID
    An Integer that contains the identifier of the expression to be removed from the expression cache.

[C#]

  • nExprID
    A int that contains the identifier of the expression to be removed from the expression cache.

Exceptions

This method may throw one of many mapped exceptions or an exception of type COMException. See Standard COM Errors for additional details.

[Visual Basic .NET]

The following table shows the custom COM errors that a COMException can wrap.

Value Description
&H8110000A Invalid expression ID specified

[C#]

The following table shows the custom COM errors that COMException can wrap.

Value Description
0x8110000A Invalid expression ID specified

Remarks

The FlushExpr method removes the specified expression from the expression cache and decrements the read-only ExprCount property by one (1).

Use the FlushAll method to remove all expressions from the expression cache.

Requirements

Namespace: Microsoft.CommerceServer.Interop.Targeting

Platforms: Windows 2000, Windows Server 2003

Assembly: exprarchlib (in exprarchlib.dll)

See Also

ExpressionEvaluatorClass

ExpressionEvaluator.ExprCount

ExpressionEvaluator.FlushAll

ExpressionEvaluator.LoadAll

ExpressionEvaluator.LoadExpr

Copyright © 2005 Microsoft Corporation.
All rights reserved.