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


Glossary Item Box

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

Syntax

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

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 TraceCollection object for System.Collections.Specialized.INotifyCollectionChanged.CollectionChanged events to detect when a new trace is added.
C#Copy Code
using (var wrapper = new NotifyCollectionChangedWrapper(app.Display.Traces, OnTraceCollectionChanged))
{
	// other code....
}
            
void OnTraceCollectionChanged(object sender, PropertyChangedEventArgs e)
{
	if (e.Action == NotifyCollectionChangedAction.Add)
	{
		// 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