Share via


ISAXAttributes::getURI Method (Windows Embedded CE 6.0)

1/6/2010

This method finds an attribute's namespace URI by index.

Returns all the information related to the name of the attribute available at the index.

Syntax

HRESULT getURI(
  int nIndex, 
  const wchar_t** ppwchUri,
  int* pcchUri
);

Parameters

  • nIndex
    [in] Attribute's index (zero-based).
  • ppwchUri
    [out] Pointer to the pointer to the namespace URI.
  • pcchUri
    [out] Pointer to the length of the namespace URI.

Return Value

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

Remarks

Each return string can be disabled by calling the method with NULL for the corresponding output parameters.

It is an error to pass NULL for the character count unless NULL is also passed for the corresponding output parameter.

Requirements

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

See Also

Reference

ISAXAttributes
ISAXAttributes::getLength Method