OPC Studio User's Guide and Reference
AEConditionState Constructor(AESubconditionElementCollection,AEAttributeValueDictionary,AESubconditionElement,Boolean,Boolean,Boolean,DAQuality,DateTime,DateTime,DateTime,DateTime,String,String)



OpcLabs.EasyOpcClassicCore Assembly > OpcLabs.EasyOpc.AlarmsAndEvents Namespace > AEConditionState Class > AEConditionState Constructor : AEConditionState Constructor(AESubconditionElementCollection,AEAttributeValueDictionary,AESubconditionElement,Boolean,Boolean,Boolean,DAQuality,DateTime,DateTime,DateTime,DateTime,String,String)

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

The individual elements of the parameter value cannot be null (Nothing in Visual Basic).

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

The value of this parameter can 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).

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

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 subconditionElements As AESubconditionElementCollection, _
   ByVal attributeValues As AEAttributeValueDictionary, _
   ByVal activeSubcondition As AESubconditionElement, _
   ByVal enabled As Boolean, _
   ByVal active As Boolean, _
   ByVal acknowledged As Boolean, _
   ByVal quality As DAQuality, _
   ByVal activeTime As Date, _
   ByVal subconditionActiveTime As Date, _
   ByVal inactiveTime As Date, _
   ByVal acknowledgeTime As Date, _
   ByVal acknowledgerId As String, _
   ByVal comment As String _
)
'Usage
 
Dim subconditionElements As AESubconditionElementCollection
Dim attributeValues As AEAttributeValueDictionary
Dim activeSubcondition As AESubconditionElement
Dim enabled As Boolean
Dim active As Boolean
Dim acknowledged As Boolean
Dim quality As DAQuality
Dim activeTime As Date
Dim subconditionActiveTime As Date
Dim inactiveTime As Date
Dim acknowledgeTime As Date
Dim acknowledgerId As String
Dim comment As String
 
Dim instance As New AEConditionState(subconditionElements, attributeValues, activeSubcondition, enabled, active, acknowledged, quality, activeTime, subconditionActiveTime, inactiveTime, acknowledgeTime, acknowledgerId, comment)

Parameters

subconditionElements

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

The individual elements of the parameter value cannot be null (Nothing in Visual Basic).

attributeValues

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

activeSubcondition

The value of this parameter can 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).

activeTime
subconditionActiveTime
inactiveTime
acknowledgeTime
acknowledgerId

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

comment

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

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