Microsoft DirectX 8.1 (C++)

MetaPropertyTypes.ItemWithName

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

The ItemWithName property retrieves an object by name.

Syntax

objMetaPropertyTypes.ItemWithName(strName As String) As MetaPropertyType

Parameters

strName

[in]  Specifies the name of the 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

The MetaPropertyTypes collection is sorted by object identifiers. This property searches the collection sequentially for the name and is, therefore, slower than the MetaPropertyTypes.ItemWithID property.

See Also