Microsoft DirectX 8.1 (C++)

MetaProperties.AddNew

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

The AddNew property retrieves a MetaProperty object with the MetaPropertyType, language, and value specified. If a matching object is not found, one is created.

Syntax

objMetaProperties.Addnew(
  proptype As MetaPropertyType,
  lang As Long,
  varValue) As MetaProperty

Parameters

proptype

[in]  Specifies a MetaPropertyType object.

lang

[in]  Specifies the language.

varValue

[in]  Specifies the value of the property.

Error Codes

If the property fails, an error is raised and Err.Number is set to a value other than zero.

Return Values

This property returns a MetaProperty object.

See Also