IExpressionEval::LoadAll

Ee810571.c++_off(en-US,CS.10).gifEe810571.vb_on(en-US,CS.10).gif

Use this method to pre-compile all expressions in the expression store. Each expression that pre-compiles correctly is loaded into the expression cache.

Definition

HRESULT IExpressionEval::LoadAll();

Parameters

None.

Return Values

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

Error Values

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.

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

Constant Value Description
E_EXPR_BADARGTYPE 0x81100018 Argument datatype infomation missing from expression, or unrecognized argument data type encountered in expression
E_EXPR_BADARGVALUE 0x81100022 Invalid expression argument value, or impossible conversion
E_EXPR_BADCLAUSE 0x81100016 Invalid clause encountered
E_EXPR_BADCONNECTION 0x8110001F Invalid connection
E_EXPR_BADOPER 0x81100017 Operator missing, unrecognized operator encountered, or type mismatch
E_EXPR_BADTERM 0x81100015 Term type missing, or unrecognized term type encountered
E_EXPR_BADXML 0x81100014 An unrecognized XML element was encountered
E_EXPR_NOCONNECTIONSTRING 0x8110000D No connection string specified
E_EXPR_XMLPARSE 0x81100013 XML DOM object parsing error

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.

Remarks

Any expressions in the expression cache at the time of the call are reloaded.

If there are many expressions in the expression store, the LoadAll method may be slow. Use the LoadExpr method to load only specific expressions into the expression cache.

For every expression loaded into the expression cache, the LoadAll method increments the read-only ExprCount property by one (1).

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

The Connect method must be called before using the LoadAll method.

See Also

ExpressionEval Object

IExpressionEval::Connect

IExpressionEval::get_ExprCount

IExpressionEval::FlushAll

IExpressionEval::FlushExpr

IExpressionEval::LoadExpr


All rights reserved.