.NET Struct Passing Tab - Type Properties Dialog Box
- Updated2024-10-09
- 2 minute(s) read
.NET Struct Passing Tab - Type Properties Dialog Box
.NET Struct Passing Tab
You can use the .NET Adapter to pass a TestStand variable or property to a structure parameter for a method or a property in an assembly. The data type of the variable or property you pass must contain all of the fields the structure parameter expects. If a data type contains a subproperty that is a named data type, you must separately configure the named data type to allow the .NET Adapter to pass objects of the data type as a structure.
Use the .NET Struct Passing tab to specify how TestStand maps the subproperties of a data type to the elements of a structure parameter.
The .NET Struct Passing tab contains the following options:
- Allow Objects of this Type to be Passed as .NET Structs —Maps this data type to a .NET structure.
-
Property
—Use this ring control to select a subproperty of the data type in order to display the type and specify the name of the structure element TestStand maps to the property.
If a subproperty of the data type is a named type, the control does not include the subproperties of the type in the ring control. You must separately configure the named data type to allow the .NET Adapter to pass objects of the named type as a structure, and specify the structure elements to map.
- Exclude When Passing Struct —When you enable this option, TestStand does not include the selected subproperty in the mapping between the data type and the structure.
- Type —The data type of the selected subproperty. This is a read-only field.
- Struct Element Name —The name of the structure element to which TestStand maps the property.