company logo

Property :: provideGenericAttribute - Provide generic attributes for new instance

When reading an instance containing generic attributes, the generic attributes according to the selected type are provided in the instance immediately only, when already existing, i.e. reading an instance will not create missing generic attributes. In order to provide an instance for each generic attribute, this function can be called, which creates initialized instances for missing generic attributes for the instance currently selected.

In case of an error (e.g. invalid property handle or no instance selected), the function throws an exception.

Notes:

The function became obsolete, since generic attributes are provided automatically now, when reading the owning instance. You may call the function, but usually, it will not have any effect. When for some reason the generic attribute has been cancelled after reading its owner instance, one may call this function in order to re-initialize the generic attribute.

Implementation details

Property  :: provideGenericAttribute (  )