expr Property (Compact 2013)
3/26/2014
Gets or sets the XML Path Language (XPath) expression string.
Syntax
strExpression = objXMLDOMSelection.expr;
objXMLDOMSelection.expr = strExpression;
HRESULT get_expr(
BSTR* expression
);
HRESULT put_expr(
BSTR expression
);
Parameters
Script
None.
C/C++
- expression
[out, retval][in] The IXMLDOMSelection expression string is either XSL Pattern or XPath syntax, depending on the setting of the SelectionLanguage internal property (flag) on the IXMLDOMDocument2 interface that created this Selection object. (For more information, see IXMLDOMDocument2::setProperty.) After it is created, the IXMLDOMSelection object continues to use the expression language with which it was created.
Return Value
Script
String. The IXMLDOMSelection expression string is either XSL Pattern or XPath syntax, depending on the setting of the SelectionLanguage internal property (flag) on the IXMLDOMDocument2 interface that created this Selection object. (For more information, see IXMLDOMDocument2::setProperty.) After it is created, the IXMLDOMSelection object continues to use the expression language with which it was created.
C/C++
- S_OK
Value returned if method is successful.
E_FAIL and formatted error message through IErrorInfo if expression is invalid.
Remarks
Setting a new expression immediately resets the state of this node list to the beginning unless the expression is invalid and an error is returned, in which case it has no effect. It does not reset the context.
This property applies to the following interface:
Requirements
Header |
msxml2.h, |