| Microsoft DirectX 8.1 (C++) |
This topic applies to Windows XP Home Edition and Windows XP Professional only.
The get_AddNew method retrieves a MetaPropertyType object from the collection. If a matching object is not found, one is created.
Syntax
HRESULT get_AddNew(
long id,
BSTR bstrName,
IMetaPropertyType** ppVal
);
Parameters
id
[in] Specifies the unique identifier of the MetaPropertyType object. Ignored if the object already exists.
bstrName
[in] Specifies the name of the MetaPropertyType object.
ppVal
[out] Address of a variable to receive a pointer to the IMetaPropertyType interface of the object retrieved.
Return Values
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| Return code | Description |
| S_OK | The method succeeded. |
| E_OUTOFMEMORY | There was not sufficient memory to create a new object. |
| E_POINTER | Data cannot be read from or written to a supplied address. |
See Also