Description

An ordered set of items that can be referred to as a unit.

Remarks

The Collection object provides a convenient way to refer to a related group of items as a single object. The items, or members, in a collection need only be related by the fact that they exist in the collection. Members of a collection do not have to share the same data type.

You can create a collection the same way you create other objects. For example:

$Collection = $System.Collection()

Once you have created a collection, you can add members with the Add method and remove them with the Remove method. You can return specific members from the collection with the Item method, and iterate through the entire collection with the For Each...Next statement.


The CHM file was converted to HTML by chm2web software.