OPC Studio User's Guide and Reference
Explicit Type Conversion Operator (UANodeId)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.AddressSpace Namespace > UANodeId Class : Explicit Type Conversion Operator
Node descriptor.
Converts a node descriptor to a node Id.
Syntax
'Declaration
 
<CanBeNullAttribute()>
<ContractAnnotationAttribute("null => null; notnull => notnull")>
Public Operator Narrowing CType( _
   ByVal nodeDescriptor As UANodeDescriptor _
) As UANodeId
'Usage
 
[CanBeNull()]
[ContractAnnotation("null => null; notnull => notnull")]
public UANodeId operator explicit( 
   UANodeDescriptor nodeDescriptor
)
[CanBeNull()]
[ContractAnnotation("null => null; notnull => notnull")]
public:
UANodeId^ operator explicit( 
   UANodeDescriptor^ nodeDescriptor
)

Parameters

nodeDescriptor
Node descriptor.

Return Value

Returns the node Id.
Remarks

The conversion operator is explicit, because not in all cases the node descriptor contains a usable node Id.

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