TPropertyBag.CreateInstance(Derived * *) (Compact 7)
3/12/2014
This method returns an instance of the data source object that implements the TPropertyBag<Derived> interface and that supports functionality that resembles the Component Object Model (COM) and exposes the interfaces defined in the TPropertyBag<Derived> interface map.
Syntax
HRESULT CreateInstance(
Derived * * ppBag)
Parameters
- ppBag
[out] A pointer to an instance of the data source object of type Derived that implements TPropertyBag<Derived>.
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 |
The method exceeded its available memory. |
E_POINTER |
The ppBag parameter is invalid. |
Remarks
The Derived class type is defined in the Derived template parameter of TPropertyBag.
The object instance returned in the ppBag parameter supports the methods XRObject.QueryInterface(const IID&,void * *), XRObject.AddRef, and XRObject.Release and supports the following interfaces and classes for callers of XRObject.QueryInterface(const IID&,void * *):
- TPropertyBag<Derived>
- IXRPropertyBag
- Derived
For more information about the interface map, see Remarks in TPropertyBag<Derived>.
Requirements
Header |
XRPropertyBag.h |