Method: AddProperties for Properties <DataPlugin>
- Updated2024-09-12
- 1 minute(s) read
DataPlugin > Methods > Method: AddProperties for Properties <DataPlugin>
Method: AddProperties for Properties <DataPlugin>
Adds a list of properties to the Properties collection.
Object.AddProperties(Properties, Prefix)
| Object | Properties <DataPlugin> Object with this method |
| Properties | Properties <DataPlugin> Specifies a collection of properties. |
| Prefix | Variant Specifies the prefix of the names of the added properties. |
| Note If the specified custom property exists, the AddProperties method overwrites the value of the property. |
The following example adds the properties of the second channel group to the properties of the first channel group:
Call Root.ChannelGroups(1).Properties.AddProperties(Root.ChannelGroups(2).Properties)
The following example checks all the elements that are associated with the Store object. If a ChannelGroup type element exists, the example adds the properties of this element to the Root properties. The example uses the element type as the prefix for the names of the new Root properties.
For j = 1 to FromStore.Children.Count If FromStore.Children.Item(j).IsKindOf(eStoreChannelGroup) Then Call Root.Properties.AddProperties(StoreElement.Properties, StoreElement.Type & i & "_") End If Next