次の方法で共有


getNamedItem Method (Windows Embedded CE 6.0)

1/6/2010

Retrieves the attribute with the specified name.

Script Syntax

var objXMLDOMNode = oXMLDOMNamedNodeMap.getNamedItem(name);

Remarks

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

  • name
    String specifying the name of the attribute.

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

Object. Returns IXMLDOMNode object for the specified attribute. Returns Null if the attribute node is not in this collection.

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

HRESULT getNamedItem(
  BSTR name,
  IXMLDOMNode** namedItem
);

Remarks

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

  • name
    [in] Name of the attribute.
  • namedItem
    [out, retval] IXMLDOMNode object for the specified attribute. Returns Null if the attribute node is not in this collection.

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

  • S_OK
    Value returned if successful.
  • S_FALSE
    Value when returning Null.
  • E_INVALIDARG
    Value returned if namedItem is Null.

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

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

General Remarks

This method applies to the following objects and interfaces:

IXMLDOMNamedNodeMap andIXMLDOMNode.

See Also

Reference

XML DOM Methods