Skip to content

Reference

OpcClient.Connect Method

Establishes a connection to the server identified by the ServerAddress and creates/activates a new session to access the OPC UA services provided by the server.

Reference

OpcClient.Connect Method ​

Type
OpcClient
Namespace
Opc.UaFx.Client
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Members
OpcClient Members
Also in
Opc.UaFx.Client

Establishes a connection to the server identified by the ServerAddress and creates/activates a new session to access the OPC UA services provided by the server.

csharp
public void Connect()
vbnet
Public Sub Connect()

Exceptions

ExceptionCondition
InvalidOperationExceptionThe ServerAddress is not specified. The value of ServerAddress is a null reference (Nothing in Visual Basic) or the method is currently not supported, because of the license has expired.
LicenseExceptionThe license is expired.
ObjectDisposedExceptionThe object has been disposed of.
OpcExceptionThis type of exception can have the following reasons: - BadSecureChannelClosed The secure channel has been closed. This can have the following reasons: - Reason A The client certificate is unknown or untrusted by the server. - Solution A Store the client certificate in the servers certificate store for trusted certificates. - Solution B Use a different endpoint with the OpcSecurityMode value None to connect to the server.