OPC Studio User's Guide and Reference
NodeElement Property (DAItemDialog)



OpcLabs.EasyOpcForms Assembly > OpcLabs.EasyOpc.DataAccess.Forms.Browsing Namespace > DAItemDialog Class : NodeElement Property
Gets the information about the OPC item selected in the dialog box.
Syntax
'Declaration
 
Public ReadOnly Property NodeElement As DANodeElement
'Usage
 
Dim instance As DAItemDialog
Dim value As DANodeElement
 
value = instance.NodeElement
public DANodeElement NodeElement {get;}
public:
property DANodeElement^ NodeElement {
   DANodeElement^ get();
}

Property Value

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

The default value of this property is null.

Because there are implicit conversions from OpcLabs.EasyOpc.DataAccess.AddressSpace.DANodeElement to OpcLabs.EasyOpc.DataAccess.DAItemDescriptor and OpcLabs.EasyOpc.DataAccess.DANodeDescriptor, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use the returned OpcLabs.EasyOpc.DataAccess.AddressSpace.DANodeElement in any place where OpcLabs.EasyOpc.DataAccess.DAItemDescriptor or OpcLabs.EasyOpc.DataAccess.DANodeDescriptor is expected as input, and the corresponding OPC DA item or node descriptor will be constructed automatically from the OPC DA node element. When the implicit conversion operators are not supported (such as with Python.NET), you can use the FromDANodeElement or FromDANodeElement 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 (OpcLabs.EasyOpc.NodeElement.NodeId) will be taken automatically from the OPC node element.

Remarks
The NodeElement is fully filled if the user has directly selected the item. The NodeElement is partially filled (only with the ItemId property) if the user has entered the node identification manually.

The getter method of this property is pure, i.e. it does not have observable side effects.

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