Reference
OpcClientApplication Members
Represents an application which hosts an OpcClient and connects it to the server when the application is run.
Reference
OpcClientApplication Members
- Type
- OpcClientApplication
- Namespace
- Opc.UaFx.Client
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
- Also in
- Opc.UaFx.Client
Inherits members from OpcClientApplication<OpcClient>, OpcApplication.
Constructors
OpcClientApplication
| Overload | Description |
|---|---|
| Opc | Initializes a new instance of the Opcclient specified. |
| Opc | Initializes a new instance of the OpcserverUri specified. |
| Opc | Initializes a new instance of the OpcserverUri specified. |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| Invalid | An application has already been created on the current thread and has not yet been exited ( |
OpcClientApplication(OpcClient)
Initializes a new instance of the OpcClientApplication class using the client specified.
csharp
public OpcClientApplication(OpcClient client)vbnet
Public Sub New(client As OpcClient)Parameters
| Name | Type | Description |
|---|---|---|
client | OpcClient | The OpcClient to host. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The client is a null reference ( |
OpcClientApplication(string)
Initializes a new instance of the OpcClientApplication class which hosts a new OpcClient using the serverUri specified.
csharp
public OpcClientApplication(string serverUri)vbnet
Public Sub New(serverUri As String)Parameters
| Name | Type | Description |
|---|---|---|
serverUri | String | The URI of the OPC UA server to operate on. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The serverUri is an empty string. |
| Argument | The serverUri is a null reference ( |
| Uri | The serverUri is not a valid URI. |
OpcClientApplication(Uri)
Initializes a new instance of the OpcClientApplication class which hosts a new OpcClient using the serverUri specified.
csharp
public OpcClientApplication(Uri serverUri)vbnet
Public Sub New(serverUri As Uri)Parameters
| Name | Type | Description |
|---|---|---|
serverUri | Uri | The Uri of the OPC UA server to operate on. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The serverUri is a null reference ( |

