Jaa


ValidateExpressionXml Method

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Checks whether an Extensible Markup Language (XML) fragment is a syntactically correct expression.

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

Syntax

'Declaration
Public Function ValidateExpressionXml ( _
    expressionXml As String _
) As Boolean
'Usage
Dim instance As ExpressionEvaluator
Dim expressionXml As String
Dim returnValue As Boolean

returnValue = instance.ValidateExpressionXml(expressionXml)
public bool ValidateExpressionXml(
    string expressionXml
)
public:
bool ValidateExpressionXml(
    String^ expressionXml
)
public function ValidateExpressionXml(
    expressionXml : String
) : boolean

Parameters

  • expressionXml
    Type: System..::.String
    XML fragment string. May not be nullNothingnullptra null reference (Nothing in Visual Basic).

Return Value

Type: System..::.Boolean
true if the XML fragment is valid; otherwise, false.

Exceptions

Exception Condition
ArgumentNullException

The expressionXml argument was passed as nullNothingnullptra null reference (Nothing in Visual Basic).

CommerceTargetingException

All the other failures.

Remarks

Checks whether an Extensible Markup Language (XML) fragment is a syntactically correct expression.

Permissions

See Also

Reference

ExpressionEvaluator Class

ExpressionEvaluator Members

Microsoft.CommerceServer.Runtime.Targeting Namespace