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
| Overload | Description |
|---|---|
| OpcClient() | Initializes a new instance of the OpcClient class. |
| OpcClient( | Initializes a new instance of the OpcClient class using the specified serverAddress. |
| OpcClient( | Initializes a new instance of the OpcClient class using the specified serverAddress. |
| OpcClient( | Initializes a new instance of the OpcClient class using the specified serverAddress and endpointPolicy. |
| OpcClient( | 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
| Exception | Condition |
|---|---|
| LicenseException | The 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
| Name | Type | Description |
|---|---|---|
serverAddress | String | The URI of the OPC UA server to operate on. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The serverAddress is an empty string. |
| Argument | The serverAddress is a null reference ( |
| Uri | The 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
| Name | Type | Description |
|---|---|---|
serverAddress | Uri | The Uri of the OPC UA server to operate on. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The serverAddress is a null reference ( |
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
| Name | Type | Description |
|---|---|---|
serverAddress | String | The URI of the OPC UA server to operate on. |
endpointPolicy | Opc | The preferred security policy configuration which is to be provided by one of the endpoints defined by the server to operate on. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The serverAddress is an empty string. |
| Argument | The serverAddress or endpointPolicy is a null reference ( |
| Uri | The 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
| Name | Type | Description |
|---|---|---|
serverAddress | Uri | The Uri of the OPC UA server to operate on. |
endpointPolicy | Opc | The preferred security policy configuration which is to be provided by one of the endpoints defined by the server to operate on. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The serverAddress or endpointPolicy is a null reference ( |

