Share via


GetProperty (IXmlWriter) (Compact 2013)

3/26/2014

This method returns the specified property. An application 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 IXmlWriter Properties.
  • ppValue
    [out] Returns the property value. This argument cannot be NULL. The type of the returned value depends on the nProperty specified.

Return Value

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

Remarks

Although most of the values referenced by the ppValue parameter are native or simple types, some are COM objects. For example, the XmlWriterProperty_MultiLanguage property references a COM IMultiLanguage2 instance. In these cases, the pointer returned by a successful call to the GetProperty (IXmlWriter) method should be released through a call to the standard COM IUnknown::Release function.

See Also

Reference

IXmlWriter Methods
IXmlWriter Properties
XmlWriterProperty_MultiLanguage
GetProperty (IXmlWriter)
IUnknown::Release
IXmlWriter Properties