QuickOPC 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)
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
time
message
eventType
categoryId
severity
attributeValues
conditionName
subconditionName
enabled
active
acknowledged
quality
acknowledgeRequired
activeTime
cookie
actorId
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