다음을 통해 공유


IExpressionEval::FlushExpr Method

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

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

HRESULT IExpressionEval::FlushExpr(
  long nExprID
);
Sub FlushExpr(
    nExprID As Long
)

Parameters

  • nExprID
    [C++]

    [in] A long that contains the identifier of the expression to be removed from the expression cache.

    [Visual Basic]

    A Long that contains the identifier of the expression to be removed from the expression cache.

Return Value

[C++]

This method returns an HRESULT indicating whether it completed successfully. See the Error Values section for more details.

[Visual Basic]

None.

Error Values

[C++]

This method returns S_OK (0x00000000) to indicate success and either standard or custom COM HRESULT error values to indicate failure. For more information about standard COM errors, see Standard COM Errors.

[Visual Basic]

This method sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to either standard or custom COM error values to indicate failure. For more information about standard COM errors, see Standard COM Errors.

The following table shows the custom COM errors that this method can return.

Constant

Value

Description

E_EXPR_BADEXPRID

0x8110000A

Invalid expression ID specified

Additional information may be available using the global Err object, which can be accessed using the API function GetErrorInfo. In particular, the GetDescription method of the IErrorInfo interface may return a text description of the error.

Additional information may be available using the global Err object. In particular, the Description property may contain a text description of the error.

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.

See Also

Other Resources

ExpressionEval Object

IExpressionEval::get_ExprCount Property

IExpressionEval::FlushAll Method

IExpressionEval::LoadAll Method

IExpressionEval::LoadExpr Method