Skip to content

Reference

OpcClient Constructors

Initializes a new instance of the OpcClient class.

Reference

OpcClient Constructors ​

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

5 overloads

OverloadDescription
OpcClient()Initializes a new instance of the OpcClient class.
OpcClient(string)Initializes a new instance of the OpcClient class using the specified serverAddress.
OpcClient(Uri)Initializes a new instance of the OpcClient class using the specified serverAddress.
OpcClient(string, OpcSecurityPolicy)Initializes a new instance of the OpcClient class using the specified serverAddress and endpointPolicy.
OpcClient(Uri, OpcSecurityPolicy)Initializes a new instance of the OpcClient class using the specified serverAddress and endpointPolicy.

OpcClient() ​

Initializes a new instance of the OpcClient class.

csharp
public OpcClient()
vbnet
Public Sub New()

Exceptions

ExceptionCondition
LicenseExceptionThe license is expired.

OpcClient(string) ​

Initializes a new instance of the OpcClient class using the specified serverAddress.

csharp
public OpcClient(string serverAddress)
vbnet
Public Sub New(serverAddress As String)

Parameters

NameTypeDescription
serverAddressStringThe URI of the OPC UA server to operate on.

Exceptions

ExceptionCondition
ArgumentExceptionThe serverAddress is an empty string.
ArgumentNullExceptionThe serverAddress is a null reference (Nothing in Visual Basic).
UriFormatExceptionThe serverAddress is not a valid URI.

OpcClient(Uri) ​

Initializes a new instance of the OpcClient class using the specified serverAddress.

csharp
public OpcClient(Uri serverAddress)
vbnet
Public Sub New(serverAddress As Uri)

Parameters

NameTypeDescription
serverAddressUriThe Uri of the OPC UA server to operate on.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe serverAddress is a null reference (Nothing in Visual Basic).

OpcClient(string, OpcSecurityPolicy) ​

Initializes a new instance of the OpcClient class using the specified serverAddress and endpointPolicy.

csharp
public OpcClient(string serverAddress, OpcSecurityPolicy endpointPolicy)
vbnet
Public Sub New(serverAddress As String, endpointPolicy As OpcSecurityPolicy)

Parameters

NameTypeDescription
serverAddressStringThe URI of the OPC UA server to operate on.
endpointPolicyOpcSecurityPolicyThe preferred security policy configuration which is to be provided by one of the endpoints defined by the server to operate on.

Exceptions

ExceptionCondition
ArgumentExceptionThe serverAddress is an empty string.
ArgumentNullExceptionThe serverAddress or endpointPolicy is a null reference (Nothing in Visual Basic).
UriFormatExceptionThe serverAddress is not a valid URI.

OpcClient(Uri, OpcSecurityPolicy) ​

Initializes a new instance of the OpcClient class using the specified serverAddress and endpointPolicy.

csharp
public OpcClient(Uri serverAddress, OpcSecurityPolicy endpointPolicy)
vbnet
Public Sub New(serverAddress As Uri, endpointPolicy As OpcSecurityPolicy)

Parameters

NameTypeDescription
serverAddressUriThe Uri of the OPC UA server to operate on.
endpointPolicyOpcSecurityPolicyThe preferred security policy configuration which is to be provided by one of the endpoints defined by the server to operate on.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe serverAddress or endpointPolicy is a null reference (Nothing in Visual Basic).