Keysight Pathwave 89600 VSA .NET API
NotifyPropertyInfoChangedWrapper Class
Members  Example  See Also 
Agilent.SA.Vsa.Interfaces Assembly > Agilent.SA.Vsa Namespace : NotifyPropertyInfoChangedWrapper Class


Glossary Item Box

This class implements a wrapper to allow IPropertyInfo.PropertyInfoChanged events to be propagated across the .NET remoting boundary.

Object Model

NotifyPropertyInfoChangedWrapper ClassIStepValue Interface

Syntax

Visual Basic (Declaration) 
Public NotInheritable Class NotifyPropertyInfoChangedWrapper 
   Inherits System.MarshalByRefObject
   Implements IPropertyInfo 
C# 
public sealed class NotifyPropertyInfoChangedWrapper : System.MarshalByRefObject, IPropertyInfo  
C++/CLI 
public ref class NotifyPropertyInfoChangedWrapper sealed : public System.MarshalByRefObject, IPropertyInfo  

Remarks

This wrapper is required as an intermediary between the client and server sides of the remoting boundary so that the server does not have to have type knowledge of the client.

Example

The following code snippet shows how to monitor the Frequency object for IPropertyInfo.PropertyInfoChanged events to detect when the IsZoom property is a enabled or not.
C#Copy Code
using (var wrapper = new NotifyPropertyInfoChangedWrapper(app.Measurements.SelectedItem.Frequency, OnFrequencyPropertyInfoChanged))
{
	// other code....
}
            
void OnFrequencyPropertyInfoChanged(object sender, PropertyInfoChangedEventArgs e)
{
	if (e.PropertyName == "IsZoom")
	{
		Vsa.IPropertyInfo info = sender as Vsa.IPropertyInfo;
		if (info.IsEnabled(e.PropertyName) == false)
		{
			// other code...
		}
	}
}

Requirements

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

Minimum Software Version Requirement: Keysight PathWave 89600 VSA Ver 14.00

See Also