T
Type for the valid values (normally the same as the type of the corresponding property they are for).
Keysight Pathwave 89600 VSA .NET API
ValidValues<T> Method
See Also  Example
Agilent.SA.Vsa.Interfaces Assembly > Agilent.SA.Vsa Namespace > IPropertyInfo Interface : ValidValues<T> Method


propertyName
Name of the property to get valid values for.

Glossary Item Box

Gets a list of valid values (currently settable values) for the specified property on the current object.

Syntax

Visual Basic (Declaration) 
Function ValidValues(Of T)( _
   ByVal propertyName As String _
) As T()
C# 
T[] ValidValues<T>( 
   string propertyName
)
C++/CLI 
array<T^>^ ValidValuesgeneric<typename T>
( 
   String^ propertyName
) 

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