OPC Studio User's Guide and Reference
ConnectionDescriptor Property (UADataSetSubscriptionDescriptor)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.PubSub Namespace > UADataSetSubscriptionDescriptor Class : ConnectionDescriptor Property
Specifies a PubSub connection, using physical parameters, or logical name.
Syntax
'Declaration
 
Public Property ConnectionDescriptor As UAPubSubConnectionDescriptor
'Usage
 
Dim instance As UADataSetSubscriptionDescriptor
Dim value As UAPubSubConnectionDescriptor
 
instance.ConnectionDescriptor = value
 
value = instance.ConnectionDescriptor
public UAPubSubConnectionDescriptor ConnectionDescriptor {get; set;}
public:
property UAPubSubConnectionDescriptor^ ConnectionDescriptor {
   UAPubSubConnectionDescriptor^ get();
   void set (    UAPubSubConnectionDescriptor^ value);
}

Property Value

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

Remarks

The getter method of this property is pure, i.e. it does not have observable side effects.

Because the UAPubSubConnectionDescriptor has an implicit conversion from OpcLabs.BaseLib.Networking.ResourceAddress and System.String, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use a OpcLabs.BaseLib.Networking.ResourceAddress object, or a string (the so-called resource description string, usually a resource URL) in place of UAPubSubConnectionDescriptor value when setting this property, and the corresponding OPC UA PubSub connection descriptor will be constructed automatically. When the implicit conversion operators are not supported (such as with Python.NET), you can use the UAPubSubConnectionDescriptor.FromResourceAddress or UAWriterGroupDescriptor.FromString static method instead.

Also, because the OpcLabs.EasyOpc.UA.PubSub.Configuration.UAPubSubConnectionElement has an implicit conversion to UAPubSubConnectionDescriptor, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use a OpcLabs.EasyOpc.UA.PubSub.Configuration.UAPubSubConnectionElement (from PubSub configuration) in place of UAPubSubConnectionDescriptor value when setting this property, and the corresponding OPC UA PubSub connection descriptor will be constructed automatically. When the implicit conversion operators are not supported (such as with Python.NET), you can convert a OpcLabs.EasyOpc.UA.PubSub.Configuration.UAPubSubConnectionElement to UAPubSubConnectionDescriptor using the OpcLabs.EasyOpc.UA.PubSub.Configuration.UAPubSubConnectionElement.ToUAPubSubConnectionDescriptor static method instead.

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