API Inheritance
- Updated2025-03-28
- 1 minute(s) read
Almost all TestStand API classes inherit from the PropertyObject class, which means you can use PropertyObject methods and properties on objects of other classes. For example, you can use the PropertyObject.Name property to obtain the name of a SequenceFile object, Sequence object, or Step object. You can also create subproperties using the PropertyObject methods. You can programmatically create a new subproperty of a step using the PropertyObject methods PropertyObject.SetValNumber, PropertyObject.SetValBoolean, or PropertyObject.SetValString with the PropOption_InsertIfMissing option.
Note In most development
environments, you must use the AsPropertyObject method to obtain a
PropertyObject interface for the original object. In LabWindows/CVI, you
can use the PropertyObject methods and property functions without first
obtaining the PropertyObject interface by using the
AsPropertyObject method.