Share via


ExpressionEvaluator.EvaluateXML (String, TargetingProfileCollection) Method (BCL)

Use this method to evaluate the expression represented in the XML string using the provided profiles.

Definition

[Visual Basic .NET]

Public Function EvaluateXML( _ByValexpressionXml As System.String, _
  ByValprofiles As TargetingProfileCollection _
) As ExpressionEvaluator.ExpressionResult

[C#]

public ExpressionEvaluator.ExpressionResult EvaluateXML(System.StringexpressionXml,
  TargetingProfileCollectionprofiles);

Parameters

[Visual Basic .NET]

  • expressionXml
    An XML body of the expression to be evaluated. Must be valid and well-formed. This parameter may not be null.
  • profiles
    A TargetingProfileCollection, representing a set of named Profile objects to be targeted. May not be null.

[C#]

  • expressionXml
    An XML body of the expression to be evaluated. Must be valid and well-formed. This parameter may not be null.
  • profiles
    A TargetingProfileCollection, representing a set of named Profile objects to be targeted. May not be null.

Return Value

An ExpressionResult object.

Remarks

Throws ArgumentNullException if one of the parameters passed is null.

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.