Microsoft DirectX 8.1 (C++) |
This topic applies to Windows XP Home Edition and Windows XP Professional only.
The Item property retrieves a specified object from the collection.
Syntax
objMetaPropertyTypes.Item(index As Long) As MetaPropertyType
Parameters
index
[in] Specifies the object to retrieve. This parameter must be a numerical index in the range from 0 to MetaPropertyTypes.Count minus 1, or a String specifying the name of the object. 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
This property is the default member of the object, and you do not need to specify the property name when you retrieve it.
When index is a String, this method is equivalent to MetaPropertyTypes.ItemWithName.
Example Code
' Retrieve the 25th item in the collection.
Dim objMetaPropertyType As MetaPropertyType
objMetaPropertyType = objMetaPropertyTypes.Item(24)
' The following is equivalent, because this is the default property.
objMetaPropertyType = objMetaPropertyTypes(24)
See Also