Share via


XRValueCollection.CreateInstance(XRValueCollection * *) (Compact 7)

3/12/2014

This method returns an instance of an XRValueCollection<ItemType> object that also supports functionality that resembles the Component Object Model (COM) and exposes interfaces defined in the inherited interface map to callers of XRObject.QueryInterface(const IID&,void * *).

Syntax

HRESULT CreateInstance(
XRValueCollection * * ppXRValueCollection)

Parameters

Return Value

The following table shows the possible return values.

Value Description

S_OK

The method was successful.

E_FAIL

The method was not successful.

E_OUTOFMEMORY

Exceeded available memory.

E_POINTER

The ppXRValueCollection parameter is not valid.

Remarks

In addition to supporting the methods inherited by XRValueCollection<ItemType>, the object instance in ppXRValueCollection supports the methods XRObject.QueryInterface(const IID&,void * *), XRObject.AddRef, and XRObject.Release, and also supports the following interfaces for callers of XRObject.QueryInterface(const IID&,void * *):

For more information about the interface map inherited by XRValueCollection<ItemType>, see _XRValueCollectionBaseT<IFace,ItemType,ItemComparer,ItemConverter,ItemLifeManager>.

This method uses the XRObject<Base> helper class to create the object instance.

Requirements

Header

XRCollection.h

See Also

Reference

XRValueCollection<ItemType>