QuickOPC User's Guide and Reference
TestConnection Method



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.PubSub.Extensions Namespace > IEasyUASubscriberExtension2 Class : TestConnection Method
Tests whether an OPC UA PubSub connection can be successfully established. Synchronous.

The method returns normally when the test passes. The method throws a OpcLabs.EasyOpc.UA.OperationModel.UAException when there is an error establishing the connection.

Due to asynchronous nature of some communication channels, successful test outcome does not always imply that a connection has been fully established.

The waitMilliseconds parameter is not a timeout in its traditional sense, i.e. a maximum time allowed for the operation. Here, this method actually waits for the time given by waitMilliseconds parameter unless a failure occurs.

Overload List
OverloadDescription
Tests whether an OPC UA PubSub connection can be successfully established. Synchronous.  
Tests whether an OPC UA PubSub connection can be successfully established. Synchronous.  
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