Partager via


_ItemLifeManager.ReleaseItem(Obj *) (Compact 2013)

3/28/2014

This helper template method provides a type-safe version of _ItemLifeManager.ReleaseItem(Type&) that releases resources that are allocated for an XRObject<Base> object instance, or for an object that supports the IUnknown interface.

Syntax

HRESULT ReleaseItem(
Obj * pItem)

Parameters

  • pItem
    [in] A pointer to a custom object type.

Return Value

Returns S_OK, if successful.

Remarks

To use an interface pointer type other than ItemType, you can use the type-safe version of the _ItemLifeManager.ReleaseItem(Type&) method. When you supply a derived type in pItem, XAML for Windows Embedded automatically uses the type-safe method, which releases a reference to the object so that you do not have to explicitly call IUnknown::Release.

Requirements

Header

XRCollection.h

See Also

Reference

_ItemLifeManager