'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)
public AEEventData( string qualifiedSourceName, DateTime time, string message, AEEventType eventType, long categoryId, int severity, AEAttributeValueDictionary attributeValues, string conditionName, string subconditionName, bool enabled, bool active, bool acknowledged, DAQuality quality, bool acknowledgeRequired, DateTime activeTime, long cookie, string actorId )
public: AEEventData( String^ qualifiedSourceName, DateTime time, String^ message, AEEventType^ eventType, int64 categoryId, int severity, AEAttributeValueDictionary^ attributeValues, String^ conditionName, String^ subconditionName, bool enabled, bool active, bool acknowledged, DAQuality^ quality, bool acknowledgeRequired, DateTime activeTime, int64 cookie, String^ 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
to4294967295
.- actorId
The value of this parameter cannot be
null
(Nothing
in Visual Basic).