Storage (property)
For automation interface information about the Storage property, see the automation interface topic for the owning item type in the Related Topics.
This property specifies whether an Attribute or Role is stored On Class or On Instance:
On Class —Specifies that the Attribute or Role value is stored on the Class, Data Type, Interface or Signal and is common to any instances of that item. The 'static' keyword is applied to this Attribute or Role during code generation.
On Instance —Specifies that the Attribute or Role value is stored on the instance, so that the Attribute or Role can have a unique value for each instance of the Class, Data Type, Interface or Signal.
By default for a Role, Storage is set to On Instance.
By default for an Attribute:
If a Class, Data Type, Interface or Signal owns a new Attribute, Storage is set to On Instance.
If the Model or Package owns a new Attribute, Storage is set to On Class.
* 
If the Model or a Package owns an Attribute, you cannot set the Storage to On Instance. If you move or copy an Attribute that has On Instance Storage to the Model or a Package, the Storage property is set to On Class.
On a Class Diagram, an Attribute that has On Class Storage is shown underlined.
This property is set on the Options tab of an Attribute's or Role's Property Pages.
* 
If you select the UML\Attributes folder in the Dictionary pane, the Contents pane shows the Storage of each Attribute in the model.
The following section provides information about the items and diagrams for which Storage is a property. For more information about an item or diagram, click it.
Is property of
Was this helpful?