Share via


_XRValueCollectionBaseT.ClearItemsImpl (Compact 7)

3/12/2014

This protected method implements collection operations that clear items in the collection.

Note

This method is reserved. In a derived class, call _XRValueCollectionBaseT.Clear instead of calling ClearItemsImpl.

Syntax

HRESULT STDMETHODCALLTYPE ClearItemsImpl(void)

Parameters

None.

Return Value

The following table shows the possible return values.

Value Description

S_OK

The method succeeded.

Remarks

The _XRValueCollectionBaseT.Clear method invokes ClearItemsImpl, which calls _ItemLifeManager.ReleaseItem(Obj *) to release references to the objects in the _XRValueCollectionBaseT<IFace,ItemType,ItemComparer,ItemConverter,ItemLifeManager> collection, and then clears the item list.

You can override the ClearItemsImpl method implementation in a derived class. To do this, define a method called ClearItemsImpl in a class that inherits from _XRValueCollectionBaseT<IFace,ItemType,ItemComparer,ItemConverter,ItemLifeManager>, and write custom programming logic that releases the objects in the collection and clears the collection.

Requirements

Header

XRCollection.h

See Also

Reference

_XRValueCollectionBaseT<IFace,ItemType,ItemComparer,ItemConverter,ItemLifeManager>
_XRValueCollectionBaseT.Clear
_ItemLifeManager