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
- ppXRValueCollection
[out] Pointer to an XRValueCollection<ItemType> instance that supports XRObject.QueryInterface(const IID&,void * *), XRObject.AddRef, XRObject.Release, and the interface entries in the interface map for the base class _XRValueCollectionBaseT<IFace,ItemType,ItemComparer,ItemConverter,ItemLifeManager>.
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 |