Acquiring a Derived Class from the PropertyObject Class
- Updated2026-07-27
- 1 minute(s) read
In some cases, you can obtain a reference to a TestStand object using the PropertyObject class methods and then access a static properties of the object.
For example, you might want to obtain the run mode for the third step of the Main step group of the currently executing sequence. For methods on the PropertyObject class that can return objects derived from the PropertyObject class, you must acquire the derived interface for the object to access the built-in properties and methods of the derived class.
Refer to the following examples for more information about acquiring a derived class from the PropertyObject class in specific development environments:
- LabVIEW
- Microsoft Visual Basic .NET
- C#
- Microsoft Visual C++/#import
Related Information
- Acquiring a Derived Class from the PropertyObject Class in LabVIEW
For methods in the PropertyObject class that return objects derived from PropertyObject, you must acquire the derived interface for the object to access the built-in properties and built-in methods of the derived class.
- Acquiring a Derived Class from the PropertyObject Class in Microsoft Visual Basic .NET
In Microsoft Visual Basic .NET, you can acquire a derived class from a dynamic property the PropertyObject class returns.
- Acquiring a Derived Class from the PropertyObject Class in C#
In C#, you can acquire a derived class from a dynamic property the PropertyObject class returns by using the as keyword or by casting.
- Acquiring a Derived Class from the PropertyObject Class in Microsoft Visual C++/#import
In Microsoft Visual C++, you can use a class the #import directive generates to acquire a derived class from a dynamic property the PropertyObject class returns.