Microsoft DirectX 8.1 (C++)

MetaPropertySets.Lookup

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

The Lookup property retrieves a MetaPropertyType object by name from the specified MetaPropertySet collection.

Syntax

objMetaPropertySets.MetaPropertySets.Lookup(bstr As String) As MetaPropertyType

Parameters

bstr

[in]  Specifies the name of the MetaPropertySet collection within which to find the MetaPropertyType object, and the name of the MetaPropertyType object, separated by a period. See Remarks.

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 first period in bstr is interpreted as a separator between the name of the MetaPropertySet and the name of the MetaPropertyType.

If bstr is "Description.Title", calling this method is equivalent to passing "Description" to MetaPropertySets.ItemWithName to retrieve a MetaPropertySet object, then calling MetaPropertySet.MetaPropertyTypes to retrieve the associated MetaPropertyTypes collection, and finally passing "Title" to MetaPropertyTypes.ItemWithName to retrieve an object from that collection.

See Also