Share via


GetProperty (IXmlReader) (Compact 2013)

3/26/2014

This interface returns the specified property. A program can retrieve properties at any time.

Syntax

HRESULT GetProperty (
    UINT nProperty, 
    LONG_PTR** ppValue
);

Arguments

  • nProperty
    [in] The enumeration that identifies the property to be retrieved. For more information, see IXmlReader Properties.
  • ppValue
    [out] Returns the property value. This argument cannot be NULL. The kind of the returned value depends on the requested property.

Return Value

Returns S_OK if no error is generated.

Remarks

Most values referenced by the ppValue parameter are native or simple types, but several values are COM objects. For example, the XmlReaderProperty_MultiLanguage property references a COM IMultiLanguage2 instance. In these cases, the pointer returned by a successful call to the GetProperty method should be released through a call to the standard COM IUnknown::Release function.

See Also

Reference

IXmlReader Methods
XmlReaderProperty_MultiLanguage
SetProperty (IXmlReader)
IXmlReader Properties
Error Codes