OPC Studio User's Guide and Reference
GetIdentifierString Method



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.AddressSpace Namespace > UANodeId Class : GetIdentifierString Method
The identifier for which the identifier string should be obtained.

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

Gets the identifier string for a given identifier.
Syntax
'Declaration
 
<NotNullAttribute()>
Public Shared Function GetIdentifierString( _
   ByVal identifier As Object _
) As String
'Usage
 
Dim identifier As Object
Dim value As String
 
value = UANodeId.GetIdentifierString(identifier)
[NotNull()]
public static string GetIdentifierString( 
   object identifier
)
[NotNull()]
public:
static String^ GetIdentifierString( 
   Object^ identifier
) 

Parameters

identifier
The identifier for which the identifier string should be obtained.

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

Return Value

Returns an empty string if the identifieris a null reference. Otherwise, return a string that consists of a key that determines the identifier type, and equal sign, and a string representation of the identifier value.

This method never returns null (Nothing in Visual Basic).

Exceptions
ExceptionDescription

One of the arguments provided to a method is not valid.

This is a usage error, i.e. it will never occur (the exception will not be thrown) in a correctly written program. Your code should not catch this exception.

Remarks

OPC UA node Id, represented by the UANodeId class, directly identifies a node in a server's address space.

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

Reference

UANodeId Class
UANodeId Members
OPC UA Node IDs
Namespace indices in OPC UA Node Ids