次の方法で共有


getAttributeNode Method (Windows Embedded CE 6.0)

1/6/2010

Retrieves the attribute node.

Script Syntax

var objXMLDOMAttribute = oXMLDOMElement.getAttributeNode(name);

Remarks

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

  • name
    String specifying the name of the attribute to be retrieved.

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

Object. Returns IXMLDOMAttribute with the supplied name, or Null if the named attribute cannot be found on this element.

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

HRESULT getAttributeNode(
  BSTR name,
  IXMLDOMAttribute** attributeNode
);

Remarks

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

  • name
    [in] Name of the attribute to be retrieved.
  • attributeNode
    [out, retval] IXMLDOMAttribute object that is returned with the supplied name, or Null if the named attribute cannot be found on this element.

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

  • S_OK
    Value returned if successful.
  • S_FALSE
    Value returned when no attribute with the given name is found.
  • E_INVALIDARG
    Value returned if name is Null.

Ee503016.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:

IXMLDOMAttribute and IXMLDOMElement.

See Also

Reference

XML DOM Methods