Connectivity Software User's Guide and Reference
UpdateFromElements Method (UADataSetSubscriptionDescriptor)



OpcLabs.EasyOpcUAPrimitives Assembly > OpcLabs.EasyOpc.UA.PubSub Namespace > UADataSetSubscriptionDescriptor Class : UpdateFromElements Method
The dataset subscription descriptor to update.

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

The PubSub connection element containing the configuration information.

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

Updates a dataset subscription descriptor from PubSub configuration elements.
Syntax
'Declaration
 
Public Shared Sub UpdateFromElements( _
   ByVal dataSetSubscriptionDescriptor As UADataSetSubscriptionDescriptor, _
   ByVal pubSubConnectionElement As UAPubSubConnectionElement _
) 
'Usage
 
Dim dataSetSubscriptionDescriptor As UADataSetSubscriptionDescriptor
Dim pubSubConnectionElement As UAPubSubConnectionElement
 
UADataSetSubscriptionDescriptor.UpdateFromElements(dataSetSubscriptionDescriptor, pubSubConnectionElement)

Parameters

dataSetSubscriptionDescriptor
The dataset subscription descriptor to update.

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

pubSubConnectionElement
The PubSub connection element containing the configuration information.

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

Remarks

This method updates the connection descriptor's properties (custom properties, network address, transport profile, and transport parameters) from the PubSub connection element. It also updates the filter's publisher ID, with special handling for JSON message mapping where publisher IDs are converted to string representation.

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