ExpressionEvaluator.Evaluate (Int32, TargetingProfileCollection) Method (BCL)
Use this method to evaluate the expression specified by the parameter and the provided profiles.
Definition
[Visual Basic .NET]
Public Function Evaluate( _ByValexpressionID As System.Int32, _
ByValprofiles As TargetingProfileCollection _
) As ExpressionEvaluator.ExpressionResult
[C#]
public ExpressionEvaluator.ExpressionResult Evaluate(System.Int32expressionID,
TargetingProfileCollectionprofiles);
Parameters
[Visual Basic .NET]
- expressionID
The expression ID of the expression to be evaluated. Must be greater than 0. - profiles
A TargetingProfileCollection, representing a set of named Profile objects to be targeted. May not be null.
[C#]
- expressionID
The expression ID of the expression to be evaluated. Must be greater than 0. - profiles
A TargetingProfileCollection, representing a set of named Profile objects to be targeted. May not be null.
Return Value
An ExpressionResult enumerator.
Remarks
Throws ArgumentNullException if the profiles argument was passed as null.
Throws ArgumentOutOfRangeException if the expressionID parameter is less than one.
Throws CommerceTargetingException for all other failures.
Requirements
Namespace: Microsoft.CommerceServer.Runtime.Targeting
Platforms: Windows 2000, Windows Server 2003
Assembly: Microsoft.CommerceServer.Runtime.dll
Copyright © 2005 Microsoft Corporation.
All rights reserved.