OPC Studio User's Guide and Reference
AENotificationPayload Constructor(EasyAENotificationEventArgs)



OpcLabs.EasyOpcClassic Assembly > OpcLabs.EasyOpc.AlarmsAndEvents.ComplexEventProcessing Namespace > AENotificationPayload Class > AENotificationPayload Constructor : AENotificationPayload Constructor(EasyAENotificationEventArgs)
Event data.

The value of this parameter cannot be null (Nothing in Visual Basic).

Initializes a new event payload from event arguments for OPC Alarms&Events notifications.
Syntax
'Declaration
 
Public Function New( _
   ByVal eventArgs As EasyAENotificationEventArgs _
)
'Usage
 
Dim eventArgs As EasyAENotificationEventArgs
 
Dim instance As New AENotificationPayload(eventArgs)
public AENotificationPayload( 
   EasyAENotificationEventArgs eventArgs
)
public:
AENotificationPayload( 
   EasyAENotificationEventArgs^ eventArgs
)

Parameters

eventArgs
Event data.

The value of this parameter cannot be null (Nothing in Visual Basic).

Remarks
When the event arguments contain no event, a default event payload is set to the EventDataPayload property, with severity equal to DefaultEventSeverity, and an error message from the event arguments.

In languages that support implicit conversions (such as C# or VB.NET), in many cases you do not have call this constructor explicitly. When indicated, a call to an available equivalent implicit conversion operator will be created by the compiler automatically.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also