次の方法で共有


context Property (Windows CE 5.0)

Send Feedback

Gets the node (subtree) that is applied to the selection.

[Script]

Script Syntax

varobjXMLDOMNode=objXMLDOMSelection.context;objXMLDOMSelection.context=objXMLDOMNode;

Script Parameters

None.

Script Return Value

Object. Returns the subtree that is applied to the selection.

[C/C++]

C/C++ Syntax

HRESULT get_context(IXMLDOMNode** ppNode);HRESULT putref_context(IXMLDOMNode* pNode);

C/C++ Parameters

  • ppNode
    [out, retval] The subtree to apply the pattern to.
  • pNode
    [in] The subtree to apply the pattern to.

C/C++ Return Values

  • S_OK
    Value returned if the method is successful.
  • S_FALSE (for get_context only)
    Value returned if the context is invalid.
  • E_INVALIDARG (for get_context only)
    Value returned if the input argument is Null.
  • E_FAIL (for putref_context only)
    Value returned if a node with a different threading model is provided.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Msxml2.h, Msxml2.idl.

General Remarks

Because the selectNodes method can be called on any node type, context can also be assigned any node type. A node from a different document from the one that originally created IXMLDOMSelection can also be specified as long as it has the same threading model. Calling context also resets the state of the node list so that nextNode starts over.

This property applies to the following interface:

IXMLDOMSelection.

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.