EvaluateXml Method
Evaluates the expression represented in the XML string and using the provided profiles.
Namespace: Microsoft.CommerceServer.Runtime.Targeting
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Function EvaluateXml ( _
expressionXml As String, _
profiles As TargetingProfileCollection _
) As ExpressionEvaluator..::.ExpressionResult
'Usage
Dim instance As ExpressionEvaluator
Dim expressionXml As String
Dim profiles As TargetingProfileCollection
Dim returnValue As ExpressionEvaluator..::.ExpressionResult
returnValue = instance.EvaluateXml(expressionXml, _
profiles)
public ExpressionEvaluator..::.ExpressionResult EvaluateXml(
string expressionXml,
TargetingProfileCollection profiles
)
public:
ExpressionEvaluator..::.ExpressionResult EvaluateXml(
String^ expressionXml,
TargetingProfileCollection^ profiles
)
public function EvaluateXml(
expressionXml : String,
profiles : TargetingProfileCollection
) : ExpressionEvaluator..::.ExpressionResult
Parameters
- expressionXml
Type: System..::.String
XML body of the expression to be evaluated. Must be valid and well-formed. This parameter may not be nullNothingnullptra null reference (Nothing in Visual Basic).
- profiles
Type: Microsoft.CommerceServer.Runtime.Targeting..::.TargetingProfileCollection
A TargetingProfileCollection, representing a set of named Profile objects to be targeted. May not be nullNothingnullptra null reference (Nothing in Visual Basic).
Return Value
Type: Microsoft.CommerceServer.Runtime.Targeting..::.ExpressionEvaluator..::.ExpressionResult
ExpressionEvaluator..::.ExpressionResult enumerator
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The evaluationContext argument was passed as nullNothingnullptra null reference (Nothing in Visual Basic). |
CommerceTargetingException | All other failures. |
Remarks
Evaluates the expression represented in the XML string and using the provided profiles.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.