'Declaration
<CanBeNullAttribute()> <ContractAnnotationAttribute("null => null; notnull => notnull")> Overloads Public Operator Widening CType( _ ByVal nodeId As UANodeId _ ) As UANodeDescriptor
'Usage
[CanBeNull()] [ContractAnnotation("null => null; notnull => notnull")] public UANodeDescriptor operator implicit( UANodeId nodeId )
[CanBeNull()] [ContractAnnotation("null => null; notnull => notnull")] public: operator UANodeDescriptor^ ( UANodeId^ nodeId )
Parameters
- nodeId
- The node Id to be converted.
Because the OpcLabs.EasyOpc.UA.AddressSpace.UANodeId has an implicit conversion from System.String, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use a string (representing the expanded text of the nodeId) in place of this parameter, and the corresponding OPC UA node Id will be constructed automatically. When the implicit conversion operators are not supported (such as with Python.NET), you can use the OpcLabs.EasyOpc.UA.AddressSpace.UANodeId.UANodeId Constructor(String) constructor instead.
The value of this parameter can be
null
(Nothing
in Visual Basic).
Return Value
null
if the input is null
.
Because there are implicit conversions to OpcLabs.EasyOpc.UA.Navigation.UANamedNodeDescriptor and OpcLabs.EasyOpc.UA.Navigation.UANamedNodePath from UANodeDescriptor, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use the returned UANodeDescriptor in any place where OpcLabs.EasyOpc.UA.Navigation.UANamedNodeDescriptor is expected (in this case the UANodeDescriptor contains the final node descriptor) or where OpcLabs.EasyOpc.UA.Navigation.UANamedNodePath is expected (in this case the UANodeDescriptor contains the base and only node in the named node path), and the corresponding OPC UA named node descriptor or named node path will be constructed automatically. When the implicit conversion operators are not supported (such as with Python.NET), you can use the OpcLabs.EasyOpc.UA.Navigation.UANamedNodeDescriptor.FromUANodeDescriptor or OpcLabs.EasyOpc.UA.Navigation.UANamedNodePath.FromUANodeDescriptor static method instead.
This method can return null
(Nothing
in Visual Basic).