QuickOPC User's Guide and Reference
CreateUInt16 Method



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

Parameters

uint16Identifier
A UInt16 identifier of the publisher Id.

Return Value

Returns a UInt16 publisher Id with the specified identifier.
Remarks

Intentionally, CLS-compliant wider input type is used.

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