ExpressionEvaluator.LoadAll Method (PIA)
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
[Visual Basic .NET]
Imports Microsoft.CommerceServer.Interop.Targeting
…
Public Sub LoadAll()
[C#]
using Microsoft.CommerceServer.Interop.Targeting;
…
public void LoadAll();
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 |
---|---|
&H81100018 | Argument data type information missing from expression, or unrecognized argument data type encountered in expression |
&H81100022 | Invalid expression argument value, or impossible conversion |
&H81100016 | Invalid clause encountered |
&H8110001F | Invalid connection |
&H81100017 | Operator missing, unrecognized operator encountered, or type mismatch |
&H81100015 | Term type missing, or unrecognized term type encountered |
&H81100014 | Unrecognized XML element encountered |
&H8110000D | No connection string specified |
&H81100013 | XML DOM object parsing error |
[C#]
The following table shows the custom COM errors that COMException can wrap.
Value | Description |
---|---|
0x81100018 | Argument data type information missing from expression, or unrecognized argument data type encountered in expression |
0x81100022 | Invalid expression argument value, or impossible conversion |
0x81100016 | Invalid clause encountered |
0x8110001F | Invalid connection |
0x81100017 | Operator missing, unrecognized operator encountered, or type mismatch |
0x81100015 | Term type missing, or unrecognized term type encountered |
0x81100014 | Unrecognized XML element encountered |
0x8110000D | No connection string specified |
0x81100013 | XML DOM object parsing 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.
Requirements
Namespace: Microsoft.CommerceServer.Interop.Targeting
Platforms: Windows 2000, Windows Server 2003
Assembly: exprarchlib (in exprarchlib.dll)
See Also
Copyright © 2005 Microsoft Corporation.
All rights reserved.