Поделиться через


expr Property (Windows Embedded CE 6.0)

1/6/2010

Gets or sets the XML Path Language (XPath) expression string.

Script Syntax

            strExpression = objXMLDOMSelection.expr;
objXMLDOMSelection.expr = strExpression;

Remarks

Ee502407.collapse(en-US,WinEmbedded.60).gifScript Parameters

None.

Ee502407.collapse(en-US,WinEmbedded.60).gifScript Return Value

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.

Ee502407.collapse(en-US,WinEmbedded.60).gifC/C++ Syntax

HRESULT get_expr(
  BSTR* expression
);
HRESULT put_expr(
  BSTR expression
);

Remarks

Ee502407.collapse(en-US,WinEmbedded.60).gifC/C++ Parameters

  • 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.

Ee502407.collapse(en-US,WinEmbedded.60).gifC/C++ Return Values

  • S_OK
    Value returned if method is successful.

E_FAIL and formatted error message through IErrorInfo if expression is invalid.

Ee502407.collapse(en-US,WinEmbedded.60).gifRequirements

Header msxml2.h, msxml2.idl
Windows Embedded CE Windows CE .NET 4.0 and later

General 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:

IXMLDOMSelection.

See Also

Reference

XML DOM Properties