Share via


XRValueCollectionT.Add(const ItemType&) (Compact 7)

3/12/2014

This method adds an item of type ItemType to the collection.

Syntax

HRESULT Add(
const ItemType & Value)

Parameters

  • Value
    [in] A pointer to the item of type ItemType to add to the collection.

Return Value

The following table shows the possible return values.

Value Description

S_OK

The method was successful.

E_INVALIDARG

An error occurred when the method attempted to insert the object at the end of the collection.

E_POINTER

The Value parameter is not valid.

Remarks

Use this method to add a data source object to a collection of data source objects.

ItemType is defined in the ItemType template parameter of the XRValueCollectionT<IFace,ItemType> class.

Requirements

Header

XRCollection.h

See Also

Reference

XRValueCollectionT<IFace,ItemType>