Microsoft Internet Security and Acceleration Server 2000 |
A collection is an object that holds many individual objects of the same type. Usually, the name of the collection will be the plural of the name of the individual object types within the collection; for example, the FPCListenEntries collection holds FPCListenEntry objects.
Collections allow you to quickly assign settings to multiple objects of the same type with a script. For example, a collection is used to hold the entries in the ISA Local Address Table (LAT), in the form of FPCLATEntry objects. You can easily populate or export the LAT table with a simple script. See Collection Methods and Properties, for specific method and property information.
ISA administration object collections do not support nested For Each loops on the same collection object. For example, the following nested loops will not work because both loops operate on the same collection object:
For Each Rule1 in Array.ArrayPolicy.SiteAndContentRules For Each Rule2 in Array.ArrayPolicy.SiteAndContentRules MsgBox Rule1.Name & Rule2.Name Next Next
The following pair of nested For Each loops will work because each loop applies to a different collection object:
For Each Array in Arrays For Each Rule in Array.ArrayPolicy.SiteAndContentRules MsgBox Rule.Name Next Next