Skip to content

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 ​

3 overloads

OverloadDescription
OpcClientApplication(OpcClient)Initializes a new instance of the OpcClientApplication class using the client specified.
OpcClientApplication(string)Initializes a new instance of the OpcClientApplication class which hosts a new OpcClient using the serverUri specified.
OpcClientApplication(Uri)Initializes a new instance of the OpcClientApplication class which hosts a new OpcClient using the serverUri specified.

Exceptions (all overloads)

ExceptionCondition
InvalidOperationExceptionAn application has already been created on the current thread and has not yet been exited (see Current).

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

NameTypeDescription
clientOpcClientThe OpcClient to host.

Exceptions

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

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

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

Exceptions

ExceptionCondition
ArgumentExceptionThe serverUri is an empty string.
ArgumentNullExceptionThe serverUri is a null reference (Nothing in Visual Basic).
UriFormatExceptionThe 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

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

Exceptions

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