Count

Returns the number of properties in the collection.

Syntax: object.Count

object
required An object expression that evaluates to a FileProperties object.

Count returns a Long equal to the total number of shell properties available for the file. Valid index values for Item range from 0 to Count - 1.

Example

This example opens a file and prints the total number of shell properties it exposes.

Dim props As FileProperties
Set props = FilePropertyExplorer.OpenFile("C:\example.mp3")
Debug.Print "Property count: " & props.Count

See Also