GetProperty (IXmlReader)

 

Returns the specified property. A program can get properties at any time.

  
HRESULT GetProperty ([in] UINT nProperty, [out] LONG_PTR ** ppValue);  

nProperty
The enumeration that identifies the property to be retrieved. For more information, see IXmlReader Properties.

ppValue
Returns the property value. This argument cannot be NULL. The type of the returned value depends on the property that was asked for.

Returns S_OK if no error is generated. If an invalid property name is passed, returns E_NOTIMPL.

Although, most of the values referenced by the ppValue parameter are native or simple types, a few 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.

Header: XmlLite.h

Library: XmlLite.lib

IXmlReader Methods
IXmlReader Properties

Show: