Item Property

This property returns a specific member of the PackageFiles collection object, either by position or by key.

Syntax

object.Item(index)

The Item property syntax has the following parts:

Part Description
object An object expression that evaluates to a PackageFiles collection.
index Expression that specifies the position of a member of the collection. If a numeric expression, index must be a number from 0 to one less than the value of the collection's Count property. If a string expression, index must correspond to the name of the file in the collection.

Remarks

If the value provided as index does not match any existing member of the collection, an error occurs.

Item is the default property for the collection.