Microsoft DirectX 8.1 (C++) |
This topic applies to Windows XP Home Edition and Windows XP Professional only.
The AddNew property retrieves a MetaPropertyType object from the collection. If a matching object is not found, one is created.
Syntax
objMetaPropertyTypes.MetaPropertyTypes(id As Long,
strName As String) As MetaPropertyType
Parameters
id
[in] Specifies the unique identifier of the MetaPropertyType object. Ignored if the object already exists.
strName
[in] Specifies the name of the MetaPropertyType object.
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 MetaPropertyType object.
Remarks
When id matches the identifier of an object already in the collection, that object is returned.
See Also