Properties represent information about an object and can be a simple or complex type and either have a single or multiple values assigned to them. The Name property shown below is an example of a simple type, i.e., String and to which only a single value can be assigned to it.

MDL_Programmer's_Guide-31-2-2e.jpg

The Office Locations property shown below is an example of a complex type, i.e., Location and to which multiple values can be assigned.

MDL_Programmer's_Guide-31-2-2f.jpg

Recall, the data type Location was defined earlier using a class definition. Also, notice the IsArray attribute is set to true to indicate the property is an array, which can have zero or an unbounded number of values assigned to it.


Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.