Compartilhar via


matches Method (Windows CE 5.0)

Send Feedback

Checks if the node that is passed is contained in the current collection.

[Script]

Script Syntax

objXMLDOMNode=objXMLDOMSelection.matches(objXMLDOMNode);

[C/C++]

C/C++ Syntax

HRESULT matches(IXMLDOMNode* pNode,IXMLDOMNode** ppNode);

C/C++ Parameters

  • pNode
    [in] The node that is passed in.
  • ppNode
    [out, retval] Boolean result.

C/C++ Return Values

  • S_OK
    Value returned if method successful.

  • E_INVALIDARG
    Value returned if pNode=NULL.

    An error for cases that are not allowed, as outlined in the Extensible Stylesheet Language (XSL) specification (applied to ID, IDREF, and Ancestor).

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Msxml2.h, Msxml2.idl.
Link Library: Uuid.lib.

General Remarks

When matches is called with node A, it returns node B such that if B was set as the context on a query, A is in the result set of the query. If no such B node is found, matches returns Null.

The matches method does not take into account the current context of the query.

This method applies to the following objects and interfaces:

IXMLDOMSelection

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.