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



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.Graphs Namespace > UANodeTreePosition Class : ParentPosition Property
Gets the parent object in the tree.
Syntax
'Declaration
 
<CanBeNullAttribute()>
Public ReadOnly Property ParentPosition As UANodeTreePosition
'Usage
 
Dim instance As UANodeTreePosition
Dim value As UANodeTreePosition
 
instance.ParentPosition = value
 
value = instance.ParentPosition
[CanBeNull()]
public UANodeTreePosition ParentPosition {get;}
[CanBeNull()]
public:
property UANodeTreePosition^ ParentPosition {
   UANodeTreePosition^ 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.UA.UANodeDescriptor has an implicit conversion from OpcLabs.EasyOpc.UA.AddressSpace.UANodeElement, you can simply use the returned OpcLabs.EasyOpc.UA.AddressSpace.UANodeElement in any place where OpcLabs.EasyOpc.UA.UANodeDescriptor is expected as input, and the corresponding node descriptor will be constructed automatically from the node element. When the implicit conversion operators are not supported (such as with Python.NET), you can use the OpcLabs.EasyOpc.UA.AddressSpace.UANodeElement.ToUANodeDescriptor static method instead.

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