OPC Studio User's Guide and Reference
RegisterWithLds Property (IEasyUAServer)



OpcLabs.ServerOpcUA Assembly > OpcLabs.EasyOpc.UA Namespace > IEasyUAServer Interface : RegisterWithLds Property
Specifies whether this server should register itself with OPC UA Local Discovery Server (LDS).
Syntax
'Declaration
 
Property RegisterWithLds As Boolean
'Usage
 
Dim instance As IEasyUAServer
Dim value As Boolean
 
instance.RegisterWithLds = value
 
value = instance.RegisterWithLds
bool RegisterWithLds {get; set;}
property bool RegisterWithLds {
   bool get();
   void set (    bool value);
}

Property Value

true if the server should register itself with the Local Discovery Server; otherwise, false.
Remarks

Registration with the Local Discovery Server (LDS) allows the server to be discoverable by OPC UA clients that query the LDS for available servers. This is particularly useful in environments where clients need to dynamically discover and connect to servers without prior knowledge of their endpoints.

The Local Discovery Server (LDS) is a DiscoveryServer that maintains a list of all OPC UA Servers and Gateways available on the host/PC that it runs on, and is the OPC UA equivalent to the OPC Classic OPCENUM interface.

The registration does not take place if this server itself is exposing an endpoint on the address reserved for the LDS, i.e. with "opc.tcp" scheme, and port 4840.

This method or property does not throw any exceptions, aside from execution exceptions such as System.Threading.ThreadAbortException or System.OutOfMemoryException.

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