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



OpcLabs.EasyOpcUAPrimitives Assembly > OpcLabs.EasyOpc.UA.PubSub.ComTypes Namespace > _UAPublisherId Interface : ToTopicLevel Method
Converts the publisher Id to a string suitable for use as a topic level in MQTT topic trees.
Syntax
'Declaration
 
<JetBrains.Annotations.NotNullAttribute()>
Function ToTopicLevel() As String
'Usage
 
Dim instance As _UAPublisherId
Dim value As String
 
value = instance.ToTopicLevel()
[JetBrains.Annotations.NotNull()]
string ToTopicLevel()
[JetBrains.Annotations.NotNull()]
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).

Remarks

This member or type is for use from COM. It is not meant to be used from .NET or Python. Refer to the corresponding .NET member or type instead, if you are developing in .NET or Python.

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