Add
The Add method of a Decision Support Objects (DSO) collection adds an object to the collection. This method does not apply to CustomProperties collections.
Note It is recommended that you use the AddNew method when adding new objects, and only use the Add method when adding existing objects, such as when adding aggregations to a partition after you have designed aggregations. For more information, see clsPartitionAnalyzer.
Syntax
colCollection.Add(Item, [sKey], [before])
- colCollection
- An instance of a DSO collection object.
- Item
- An expression that specifies the member to add to the collection.
- sKey
- Reserved. Defaults to Item.Name. If specified, must contain the value of the item’s Name property.
- before
- Optional. An expression that specifies a relative position in the collection. The member to be added is placed in the collection before the member identified by the before argument. The value of before must be a number from 1 to the value of the colCollection.Count property. If you omit this parameter, the item is appended at the last position in the collection.
Note All collections in the DSO object model are one-based. That is, the first item in the collection has an index of 1 and the last item has an index of Count.
(c) 1988-1998 Microsoft Corporation. All Rights Reserved.