OPC Studio User's Guide and Reference
ActiveSubcondition Property (AEConditionState)



OpcLabs.EasyOpcClassicCore Assembly > OpcLabs.EasyOpc.AlarmsAndEvents Namespace > AEConditionState Class : ActiveSubcondition Property
Currently active sub-condition, for multi-state conditions which are active. For a single-state condition, this contains the information about the condition itself.
Syntax
'Declaration
 
Public Property ActiveSubcondition As AESubconditionElement
'Usage
 
Dim instance As AEConditionState
Dim value As AESubconditionElement
 
instance.ActiveSubcondition = value
 
value = instance.ActiveSubcondition
public AESubconditionElement ActiveSubcondition {get; set;}
public:
property AESubconditionElement^ ActiveSubcondition {
   AESubconditionElement^ get();
   void set (    AESubconditionElement^ value);
}

Property Value

This value of this property can be null (Nothing in Visual Basic).

The default value of this property is null.

Because the OpcLabs.EasyOpc.AlarmsAndEvents.AddressSpace.AESubconditionElement has an implicit conversion to System.String, and it converts to the subcondition name (OpcLabs.EasyOpc.AlarmsAndEvents.AddressSpace.AESubconditionElement.Name), in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use the returned OpcLabs.EasyOpc.AlarmsAndEvents.AddressSpace.AESubconditionElement in any place where subcondition name (a string) is expected as input, and the corresponding subcondition name will be taken automatically from the subcondition element.

Remarks

Contains an OpcLabs.EasyOpc.AlarmsAndEvents.AddressSpace.AESubconditionElement.

For inactive conditions, this value is null.

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