Index Property

Return the index for the file in the PackageFiles collection.

Syntax

object.Index

The object is an expression that evaluates to a PackageFile object.

Remarks

The Index property specifies the current file's index into the PackageFiles collection.

If a file is deleted or added to the package, or the Refresh method is called for the PackageFiles collection, the index value for a specific file may change. Because of this, an application should never store the index value or otherwise depend on the index value remaining constant for a specific file.

See Also

Delete Method