ExpressionEvaluator.ValidateExpressionXml (String) Method (BCL)
Use this method to check whether an Extensible Markup Language (XML) fragment is a syntactically correct expression.
Definition
[Visual Basic .NET]
Public Function ValidateExpressionXml( _ByValexpressionXml As System.String _
) As System.Boolean
[C#]
public System.Boolean ValidateExpressionXml(System.StringexpressionXml);
Parameters
[Visual Basic .NET]
- expressionXml
The XML fragment string. May not be null.
[C#]
- expressionXml
The XML fragment string. May not be null.
Return Value
True is returned if the expression XML is valid. If it is invalid, an exception is thrown.
Remarks
Throws ArgumentNullException if the expressionXML parameter was passed as 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.