Keysight Pathwave 89600 VSA .NET API
MeasurementExtensionType Property
See Also  Example
Agilent.SA.Vsa.Interfaces Assembly > Agilent.SA.Vsa Namespace > Measurement Class : MeasurementExtensionType Property


Glossary Item Box

Gets the type of the current measurement. It returns the same type as MeasurementExtension().InterfaceType, but provides a more convenient way to bind to a PropertyChanged notification.

Syntax

Visual Basic (Declaration) 
Public MustOverride ReadOnly Property MeasurementExtensionType As Type
C# 
public abstract Type MeasurementExtensionType {get;}
C++/CLI 
public:
abstract property Type^ MeasurementExtensionType {
   Type^ get();
}

Exceptions

ExceptionDescription
System.IO.FileNotFoundExceptionThrown when client interface assembly defining the returned System.Type is not available from the calling process.

Remarks

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.

Example

C#Copy Code
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));
}

Requirements

Target Platforms: Windows 11 Professional or Enterprise; Windows 10 Professional, Enterprise, or Education (64-bit)

See Also