GetProperty (IXmlReader)

 

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

Syntax

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

Arguments

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.

Return Value

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

Remarks

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.

Requirements

Header: XmlLite.h

Library: XmlLite.lib

See Also

IXmlReader Methods
IXmlReader Properties