Connectivity Software User's Guide and Reference
FormatInternalPublisherId Method



OpcLabs.EasyOpcUAPrimitives Assembly > OpcLabs.EasyOpc.UA.PubSub Namespace > UAPubSubUtilities Class : FormatInternalPublisherId Method
The internal publisher Id value to format. Can be null, System.Byte, System.UInt16, System.UInt32, System.UInt64, or System.String.

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

Formats an internal publisher Id into a string representation that includes the type name.
Syntax
'Declaration
 
<JetBrains.Annotations.NotNullAttribute()>
Public Shared Function FormatInternalPublisherId( _
   ByVal publisherId As Object _
) As String
'Usage
 
Dim publisherId As Object
Dim value As String
 
value = UAPubSubUtilities.FormatInternalPublisherId(publisherId)
[JetBrains.Annotations.NotNull()]
public static string FormatInternalPublisherId( 
   object publisherId
)
[JetBrains.Annotations.NotNull()]
public:
static String^ FormatInternalPublisherId( 
   Object^ publisherId
) 

Parameters

publisherId
The internal publisher Id value to format. Can be null, System.Byte, System.UInt16, System.UInt32, System.UInt64, or System.String.

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

Return Value

Returns a string in the format "[TypeName]value", where TypeName is the publisher Id type name and value is the publisher Id value. For null input, returns "[]".

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

Remarks

The formatted string can be parsed back using ParseInternalPublisherId.

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