OPC Studio User's Guide and Reference
FromDANodeDescriptor Method



OpcLabs.EasyOpcClassicCore Assembly > OpcLabs.EasyOpc.DataAccess Namespace > DAItemDescriptor Class : FromDANodeDescriptor Method
Contains node descriptor.

Because the DANodeDescriptor has an implicit conversion from System.String and OpcLabs.EasyOpc.DataAccess.AddressSpace.DANodeElement, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use a string (representing the qualified name of the node), or a OpcLabs.EasyOpc.DataAccess.AddressSpace.DANodeElement object (result from OPC browsing), in place of this parameter, and the corresponding OPC DA node descriptor will be constructed automatically. When the implicit conversion operators are not supported (such as with Python.NET), you can use the DANodeDescriptor.FromString or DANodeDescriptor.FromDANodeElement static method instead.

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

Converts a node descriptor a DAItemDescriptor object.
Syntax
'Declaration
 
<CanBeNullAttribute()>
Public Shared Function FromDANodeDescriptor( _
   ByVal nodeDescriptor As DANodeDescriptor _
) As DAItemDescriptor
'Usage
 
Dim nodeDescriptor As DANodeDescriptor
Dim value As DAItemDescriptor
 
value = DAItemDescriptor.FromDANodeDescriptor(nodeDescriptor)
[CanBeNull()]
public static DAItemDescriptor FromDANodeDescriptor( 
   DANodeDescriptor nodeDescriptor
)
[CanBeNull()]
public:
static DAItemDescriptor^ FromDANodeDescriptor( 
   DANodeDescriptor^ nodeDescriptor
) 

Parameters

nodeDescriptor
Contains node descriptor.

Because the DANodeDescriptor has an implicit conversion from System.String and OpcLabs.EasyOpc.DataAccess.AddressSpace.DANodeElement, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use a string (representing the qualified name of the node), or a OpcLabs.EasyOpc.DataAccess.AddressSpace.DANodeElement object (result from OPC browsing), in place of this parameter, and the corresponding OPC DA node descriptor will be constructed automatically. When the implicit conversion operators are not supported (such as with Python.NET), you can use the DANodeDescriptor.FromString or DANodeDescriptor.FromDANodeElement static method instead.

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

Return Value

Returns a DAItemDescriptor converted from the input argument.

This method can return null (Nothing in Visual Basic).

Remarks

This method or property does not throw any exceptions, aside from execution exceptions such as System.Threading.ThreadAbortException or System.OutOfMemoryException.

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