Compartilhar via


ISAXAttributes::getURI Method (Windows CE 5.0)

Send Feedback

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.

HRESULT getURI(intnIndex, 
  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 Values

  • 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

OS Versions: Windows CE .NET 4.0 and later.
Header: Msxml2.h, Msxml2.idl.
Link Library: Uuid.lib.

See Also

getLength Method | ISAXAttributes:IUnknown Interface

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.