Gets a list of valid values (currently settable values) for the specified property on the current object.
Syntax
Parameters
- propertyName
- Name of the property to get valid values for.
Type Parameters
- T
- Type for the valid values (normally the same as the type of the corresponding property they are for).
Return Value
Array of valid values.
Example
Get an array of currently valid input ranges.
C# | Copy Code |
---|
double[] ranges = (app.Measurements.SelectedItem.Input.Analog as IPropertyInfo).ValidValues<double>("Range"); |
Requirements
Target Platforms: Windows 11 Professional or Enterprise; Windows 10 Professional, Enterprise, or Education (64-bit)
See Also