Connectivity Software User's Guide and Reference
ToTopicLevel Method (UAPublisherId)



OpcLabs.EasyOpcUAPrimitives Assembly > OpcLabs.EasyOpc.UA.PubSub Namespace > UAPublisherId Class : ToTopicLevel Method
Converts the publisher Id to a string suitable for use as a topic level in MQTT topic trees.
Syntax
'Declaration
 
Public Function ToTopicLevel() As String
'Usage
 
Dim instance As UAPublisherId
Dim value As String
 
value = instance.ToTopicLevel()
public string ToTopicLevel()
public:
String^ ToTopicLevel(); 

Return Value

Returns an empty string if the publisher Id is null. Otherwise, returns the string identifier for string-type publisher Ids, or the numeric value converted to string for numeric publisher Ids.

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

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