Share via


ISAXAttributes::getIndexFromName Method (Windows Embedded CE 6.0)

1/6/2010

This method finds an attribute by name and returns the (zero-based) index for the attribute. For ambiguous names, this method returns the name from the first namespace.

Syntax

HRESULT getIndexFromName(
  const wchar_t* pwchUri, 
  int cchUri, 
  const wchar_t* pwchLocalName, 
  int cchLocalName,
  int* pnIndex
);

Parameters

  • pwchUri
    [in] Pointer to the namespace URI or, if the name has no namespace URI, an empty string.
  • cchUri
    [in]Length of the namespace URI string.
  • pwchLocalName
    [in]Pointer to the attribute's local name.
  • cchLocalName
    [in] Length of the local name string.
  • pnIndex
    [out, retval] Pointer to the returned index value.

Return Value

  • S_OK
    Returned if the index value is returned successfully.
  • E_INVALIDARG
    Returned if no matching attribute is found.
  • E_FAIL
    Returned if an internal error occurs.

Requirements

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

See Also

Reference

ISAXAttributes
ISAXAttributes::getIndexFromQName Method
ISAXAttributes::getLength Method