OPC Studio User's Guide and Reference
AEEventData Constructor(String,DateTime,String,AEEventType,Int64,Int32,AEAttributeValueDictionary,String,String,Boolean,Boolean,Boolean,DAQuality,Boolean,DateTime,Int64,String)



OpcLabs.EasyOpcClassicCore Assembly > OpcLabs.EasyOpc.AlarmsAndEvents Namespace > AEEventData Class > AEEventData Constructor : AEEventData Constructor(String,DateTime,String,AEEventType,Int64,Int32,AEAttributeValueDictionary,String,String,Boolean,Boolean,Boolean,DAQuality,Boolean,DateTime,Int64,String)

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

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

Because the AEEventType has an implicit conversion from System.Int64 and AEEventTypes, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use a long integer (representing the numerical value of the event types), or an element of the AEEventTypes enumeration (or a combination of AEEventTypes flags) in place of this parameter, and the corresponding event type specification will be constructed automatically. When the implicit conversion operators are not supported (such as with Python.NET), you can use the AEEventType.AEEventType Constructor(Int64) or AEEventType.AEEventType Constructor(AEEventTypes) constructor instead.

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

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

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

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

Because the OpcLabs.EasyOpc.DataAccess.DAQuality has an implicit conversion from System.Int32 and OpcLabs.EasyOpc.DataAccess.DAQualities, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use an integer (representing the internal value of the quality), or an element of the OpcLabs.EasyOpc.DataAccess.DAQualities enumeration in place of this parameter, and the corresponding OPC DA quality object will be constructed automatically. When the implicit conversion operators are not supported (such as with Python.NET), you can use the OpcLabs.EasyOpc.DataAccess.DAQuality.DAQuality Constructor(Int32) or OpcLabs.EasyOpc.DataAccess.DAQuality.DAQuality Constructor(DAQualities) constructor instead.

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

Valid values of this parameter are in the range from 0 to 4294967295.

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

Initializes a new instance of the class with given data.
Syntax
'Declaration
 
Public Function New( _
   ByVal qualifiedSourceName As String, _
   ByVal time As Date, _
   ByVal message As String, _
   ByVal eventType As AEEventType, _
   ByVal categoryId As Long, _
   ByVal severity As Integer, _
   ByVal attributeValues As AEAttributeValueDictionary, _
   ByVal conditionName As String, _
   ByVal subconditionName As String, _
   ByVal enabled As Boolean, _
   ByVal active As Boolean, _
   ByVal acknowledged As Boolean, _
   ByVal quality As DAQuality, _
   ByVal acknowledgeRequired As Boolean, _
   ByVal activeTime As Date, _
   ByVal cookie As Long, _
   ByVal actorId As String _
)
'Usage
 
Dim qualifiedSourceName As String
Dim time As Date
Dim message As String
Dim eventType As AEEventType
Dim categoryId As Long
Dim severity As Integer
Dim attributeValues As AEAttributeValueDictionary
Dim conditionName As String
Dim subconditionName As String
Dim enabled As Boolean
Dim active As Boolean
Dim acknowledged As Boolean
Dim quality As DAQuality
Dim acknowledgeRequired As Boolean
Dim activeTime As Date
Dim cookie As Long
Dim actorId As String
 
Dim instance As New AEEventData(qualifiedSourceName, time, message, eventType, categoryId, severity, attributeValues, conditionName, subconditionName, enabled, active, acknowledged, quality, acknowledgeRequired, activeTime, cookie, actorId)

Parameters

qualifiedSourceName

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

time
message

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

eventType

Because the AEEventType has an implicit conversion from System.Int64 and AEEventTypes, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use a long integer (representing the numerical value of the event types), or an element of the AEEventTypes enumeration (or a combination of AEEventTypes flags) in place of this parameter, and the corresponding event type specification will be constructed automatically. When the implicit conversion operators are not supported (such as with Python.NET), you can use the AEEventType.AEEventType Constructor(Int64) or AEEventType.AEEventType Constructor(AEEventTypes) constructor instead.

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

categoryId
severity
attributeValues

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

conditionName

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

subconditionName

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

enabled
active
acknowledged
quality

Because the OpcLabs.EasyOpc.DataAccess.DAQuality has an implicit conversion from System.Int32 and OpcLabs.EasyOpc.DataAccess.DAQualities, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use an integer (representing the internal value of the quality), or an element of the OpcLabs.EasyOpc.DataAccess.DAQualities enumeration in place of this parameter, and the corresponding OPC DA quality object will be constructed automatically. When the implicit conversion operators are not supported (such as with Python.NET), you can use the OpcLabs.EasyOpc.DataAccess.DAQuality.DAQuality Constructor(Int32) or OpcLabs.EasyOpc.DataAccess.DAQuality.DAQuality Constructor(DAQualities) constructor instead.

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

acknowledgeRequired
activeTime
cookie

Valid values of this parameter are in the range from 0 to 4294967295.

actorId

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

Exceptions
ExceptionDescription

One of the arguments provided to a method is not valid.

This is a usage error, i.e. it will never occur (the exception will not be thrown) in a correctly written program. Your code should not catch this exception.

A null reference (Nothing in Visual Basic) is passed to a method that does not accept it as a valid argument.

This is a usage error, i.e. it will never occur (the exception will not be thrown) in a correctly written program. Your code should not catch this exception.

The value of an argument is outside the allowable range of values as defined by the invoked method.

This is a usage error, i.e. it will never occur (the exception will not be thrown) in a correctly written program. Your code should not catch this exception.

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