Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- 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.