Visual Basic (Declaration) | |
---|---|
Public MustOverride ReadOnly Property MeasurementExtensionType As Type |
C# | |
---|---|
public abstract Type MeasurementExtensionType {get;} |
Exception | Description |
---|---|
System.IO.FileNotFoundException | Thrown when client interface assembly defining the returned System.Type is not available from the calling process. |
To successfully retrieve the System.Type from a client application, the corresponding reference assembly must be referenced by and compiled into the client application. For instance, if the DVB-S2X measurement extension is active, the client application must reference the
Keysight.SA.Vsa.DvbS2x.Interfaces.dll
assembly, and this assembly must be available to load into the calling process (typically by residing in the same directory as the main executable module). If this condition is not met, the System.IO.FileNotFoundException will be thrown. Therefore, if calling code does not know ahead of time what measurement extensions may be active, exception handling code should be used when calling this property.C# | ![]() |
---|---|
string measurementExtensionTypeName = string.Empty; try { // This will throw System.IO.FileNotFoundException unless the corresponding // Type is available to the calling process. measurementExtensionTypeName = app.Measurements.SelectedItem.MeasurementExtensionType.FullName; Console.WriteLine(string.Format("MeasurementExtensionType: '{0}'", measurementExtensionTypeName)); } catch (System.IO.FileNotFoundException ex) { Console.WriteLine(string.Format("Unknown MeasurementExtensionType required assembly: '{0}'", ex.FileName)); } |
Target Platforms: Windows 11 Professional or Enterprise; Windows 10 Professional, Enterprise, or Education (64-bit)