QuickOPC User's Guide and Reference
UAPublisherId Constructor(UAPublisherIdType,Object)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.PubSub Namespace > UAPublisherId Class > UAPublisherId Constructor : UAPublisherId Constructor(UAPublisherIdType,Object)
The type of the publisher Id.
The identifier part of the publisher Id.
Initializes a new instance of the class.
Syntax
'Declaration
 
Public Function New( _
   ByVal publisherIdType As UAPublisherIdType, _
   ByVal identifier As Object _
)
'Usage
 
Dim publisherIdType As UAPublisherIdType
Dim identifier As Object
 
Dim instance As New UAPublisherId(publisherIdType, identifier)

Parameters

publisherIdType
The type of the publisher Id.
identifier
The identifier part of the publisher Id.
Exceptions
ExceptionDescription

One of the arguments provided to a method is not valid.

This is a usage error, i.e. it will never occur (the exception will not be thrown) in a correctly written program. Your code should not catch this exception.

The format of an argument is invalid, or a composite format string is not well formed.

An invalid casting or explicit conversion has been attempted.

This is a usage error, i.e. it will never occur (the exception will not be thrown) in a correctly written program. Your code should not catch this exception.

An invalid enumeration value was used.

This is a usage error, i.e. it will never occur (the exception will not be thrown) in a correctly written program. Your code should not catch this exception.

An arithmetic, casting, or conversion operation in a checked context resulted in an overflow.
Remarks

Depending on the publisherIdType, the identifier must fulfill the conditions below.

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