QuickOPC User's Guide and Reference
CreateByte Method



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.PubSub Namespace > UAPublisherId Class : CreateByte Method
A byte identifier of the publisher Id.
Creates a publisher Id with given byte identifier.
Syntax
'Declaration
 
<NotNullAttribute()>
<PureAttribute()>
Public Shared Function CreateByte( _
   ByVal byteIdentifier As Byte _
) As UAPublisherId
'Usage
 
Dim byteIdentifier As Byte
Dim value As UAPublisherId
 
value = UAPublisherId.CreateByte(byteIdentifier)
[NotNull()]
[Pure()]
public static UAPublisherId CreateByte( 
   byte byteIdentifier
)
[NotNull()]
[Pure()]
public:
static UAPublisherId^ CreateByte( 
   byte byteIdentifier
) 

Parameters

byteIdentifier
A byte identifier of the publisher Id.

Return Value

Returns a byte publisher Id with the specified identifier.
Remarks

It is intentional that there is no way to directly construct a numerical UAPublisherId without having to somehow explicitly state the desired type. This design attempts to prevent unwanted creation of publisher Ids with wrong type.

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