OPCDA.NET-UA
ConstructEvent Method
See Also  Send Feedback
OpcDaNetUaOption.Net4 Assembly > Opc.Ua.ClientDA Namespace > ClientUtils Class : ConstructEvent Method

session
The session.
monitoredItem
The monitored item that produced the notification.
notification
The notification.
knownEventTypes
The known event types.
eventTypeMappings
Mapping between event types and known event types.

Glossary Item Box

Constructs an event object from a notification.

Syntax

Visual Basic (Declaration) 
Public Shared Function ConstructEvent( _
   ByVal session As Opc.Ua.Client.Session, _
   ByVal monitoredItem As Opc.Ua.Client.MonitoredItem, _
   ByVal notification As Opc.Ua.EventFieldList, _
   ByVal knownEventTypes As Dictionary(Of NodeId,Type), _
   ByVal eventTypeMappings As Dictionary(Of NodeId,NodeId) _
) As Opc.Ua.BaseEventState
C# 
public static Opc.Ua.BaseEventState ConstructEvent( 
   Opc.Ua.Client.Session session,
   Opc.Ua.Client.MonitoredItem monitoredItem,
   Opc.Ua.EventFieldList notification,
   Dictionary<NodeId,Type> knownEventTypes,
   Dictionary<NodeId,NodeId> eventTypeMappings
)

Parameters

session
The session.
monitoredItem
The monitored item that produced the notification.
notification
The notification.
knownEventTypes
The known event types.
eventTypeMappings
Mapping between event types and known event types.

Return Value

The event object. Null if the notification is not a valid event type.

Requirements

Target Platforms: Windows 7/8/10, Windows Server 2008/2012/2016, .NET 4.7.2

See Also

Copyright © 2020 Advosol Inc. All Rights Reserved.