Share via


LoadExpression Method

Loads and precompiles the specified expression from the expression store database, and updates the cache if necessary.

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

Syntax

'Declaration
Public Sub LoadExpression ( _
    expressionID As Integer _
)
'Usage
Dim instance As ExpressionEvaluator
Dim expressionID As Integer

instance.LoadExpression(expressionID)
public void LoadExpression(
    int expressionID
)
public:
void LoadExpression(
    int expressionID
)
public function LoadExpression(
    expressionID : int
)

Parameters

  • expressionID
    Type: System..::.Int32
    The identifier of the expression to be evaluated. Must be greater than or equal to 0.

Exceptions

Exception Condition
ArgumentOutOfRangeException

The expressionID argument is less than one.

CommerceTargetingException

All the other failures.

Remarks

Loads and precompiles the specified expression from the expression store database, and updates the cache if necessary.

Permissions

See Also

Reference

ExpressionEvaluator Class

ExpressionEvaluator Members

Microsoft.CommerceServer.Runtime.Targeting Namespace