Microsoft DirectX 8.1 (C++)

IMetaProperties::get_AddNew

This topic applies to Windows XP Home Edition and Windows XP Professional only.

The get_AddNew method adds a MetaProperty object to the collection.

Syntax

HRESULT get_AddNew(
  IMetaPropertyType*  pproptype,
  long  lang,
  VARIANT  varValue,
  IMetaProperty**  ppVal
);

Parameters

pproptype

[in]  Specifies the IMetaPropertyType interface of a MetaPropertyType object.

lang

[in]  Specifies the language.

varValue

[in]  Specifies the value of the property.

ppVal

[out]  Address of a variable to receive a pointer to the IMetaProperty interface of the retrieved object.

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