OPC Studio User's Guide and Reference
ParentPosition Property (AENodeTreePosition)



OpcLabs.EasyOpcClassicCore Assembly > OpcLabs.EasyOpc.AlarmsAndEvents.Graphs Namespace > AENodeTreePosition Class : ParentPosition Property
Gets the parent object in the tree.
Syntax
'Declaration
 
<CanBeNullAttribute()>
Public ReadOnly Property ParentPosition As AENodeTreePosition
'Usage
 
Dim instance As AENodeTreePosition
Dim value As AENodeTreePosition
 
instance.ParentPosition = value
 
value = instance.ParentPosition
[CanBeNull()]
public AENodeTreePosition ParentPosition {get;}
[CanBeNull()]
public:
property AENodeTreePosition^ ParentPosition {
   AENodeTreePosition^ get();
}

Property Value

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

Returns parent object, or null if this object is a root of the tree.

Because the OpcLabs.EasyOpc.AlarmsAndEvents.AddressSpace.AENodeElement has an implicit conversion to OpcLabs.EasyOpc.AlarmsAndEvents.AENodeDescriptor, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use the returned OpcLabs.EasyOpc.AlarmsAndEvents.AddressSpace.AENodeElement in any place where OpcLabs.EasyOpc.AlarmsAndEvents.AENodeDescriptor is expected as input, and the corresponding OPC A&E node descriptor will be constructed automatically from the OPC A&E node element. When the implicit conversion operators are not supported (such as with Python.NET), you can use the ToAENodeDescriptor static method instead.

Because the OpcLabs.EasyOpc.NodeElement has an implicit conversion to System.String, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use the returned OpcLabs.EasyOpc.NodeElement in any place where System.String is expected as input, and the corresponding OPC node Id (NodeId) will be taken automatically from the OPC node element.

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