OPC Studio User's Guide and Reference
DiscoveryResourceAddress Property (UADatagramConnectionTransportParameters)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.PubSub.Configuration Namespace > UADatagramConnectionTransportParameters Class : DiscoveryResourceAddress Property
Contains the network address information used for the discovery probe and announcement messages.
Syntax
'Declaration
 
<XmlIgnoreAttribute()>
Public Property DiscoveryResourceAddress As ResourceAddress
'Usage
 
Dim instance As UADatagramConnectionTransportParameters
Dim value As ResourceAddress
 
instance.DiscoveryResourceAddress = value
 
value = instance.DiscoveryResourceAddress
[XmlIgnore()]
public ResourceAddress DiscoveryResourceAddress {get; set;}
[XmlIgnore()]
public:
property ResourceAddress^ DiscoveryResourceAddress {
   ResourceAddress^ get();
   void set (    ResourceAddress^ value);
}

Property Value

This value of this property can be null (Nothing in Visual Basic).

Remarks

The value is null when the type of the DiscoveryNetworkAddress is not a OpcLabs.BaseLib.Networking.ResourceAddress or its derivation.

Because the OpcLabs.BaseLib.Networking.ResourceAddress has an implicit conversion from OpcLabs.BaseLib.ResourceDescriptor and System.String, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use a OpcLabs.BaseLib.ResourceDescriptor object, or a string (descriptor string - usually a URL) in place of OpcLabs.BaseLib.Networking.ResourceAddress value when setting this property, and the corresponding resource address will be constructed automatically. When the implicit conversion operators are not supported (such as with Python.NET), you can use the OpcLabs.BaseLib.Networking.ResourceAddress.FromResourceDescriptor or OpcLabs.BaseLib.Networking.ResourceAddress.FromString 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