Skip to content

Reference

OpcServerApplication Members

Represents an application which hosts an OpcServer and starts it when the application is run.

Reference

OpcServerApplication Members ​

Type
OpcServerApplication
Namespace
Opc.UaFx.Server
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0

Inherits members from OpcServerApplication<OpcServer>, OpcApplication.

Constructors ​

OpcServerApplication ​

5 overloads

OverloadDescription
OpcServerApplication(OpcServer)Initializes a new instance of the OpcServerApplication class using the server specified.
OpcServerApplication(string, IEnumerable<OpcNodeManager>)Initializes a new instance of the OpcServerApplication class which hosts a new OpcServer using the address and nodeManagers specified.
OpcServerApplication(Uri, IEnumerable<OpcNodeManager>)Initializes a new instance of the OpcServerApplication class which hosts a new OpcServer using the address and nodeManagers specified.
OpcServerApplication(string, params OpcNodeManager[])Initializes a new instance of the OpcServerApplication class which hosts a new OpcServer using the address and nodeManagers specified.
OpcServerApplication(Uri, params OpcNodeManager[])Initializes a new instance of the OpcServerApplication class which hosts a new OpcServer using the address and nodeManagers specified.

Exceptions (all overloads)

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

OpcServerApplication(OpcServer) ​

Initializes a new instance of the OpcServerApplication class using the server specified.

csharp
public OpcServerApplication(OpcServer server)
vbnet
Public Sub New(server As OpcServer)

Parameters

NameTypeDescription
serverOpcServerThe OpcServer to host.

Exceptions

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

OpcServerApplication(string, IEnumerable<OpcNodeManager>) ​

Initializes a new instance of the OpcServerApplication class which hosts a new OpcServer using the address and nodeManagers specified.

csharp
public OpcServerApplication(
    string address,
    IEnumerable<OpcNodeManager> nodeManagers)
vbnet
Public Sub New(
    address As String,
    nodeManagers As IEnumerable(Of OpcNodeManager))

Parameters

NameTypeDescription
addressStringThe string representation of the address of the server which needs to use one of the supported schemes 'opc.tcp' and 'https'.
nodeManagersIEnumerable<OpcNodeManager>A sequence of OpcNodeManager instances which provide the address space of the server. The first node manager is used as the DefaultNodeManager.

Exceptions

ExceptionCondition
ArgumentExceptionThe address is equals Empty or is not an absolute URI using one of the supported schemes 'opc.tcp' and 'https'.
ArgumentNullExceptionThe address or nodeManagers sequence or one of its items is a null reference (Nothing in Visual Basic).

OpcServerApplication(Uri, IEnumerable<OpcNodeManager>) ​

Initializes a new instance of the OpcServerApplication class which hosts a new OpcServer using the address and nodeManagers specified.

csharp
public OpcServerApplication(
    Uri address,
    IEnumerable<OpcNodeManager> nodeManagers)
vbnet
Public Sub New(address As Uri, nodeManagers As IEnumerable(Of OpcNodeManager))

Parameters

NameTypeDescription
addressUriThe Uri of the address of the server which needs to use one of the supported schemes 'opc.tcp' and 'https'.
nodeManagersIEnumerable<OpcNodeManager>A sequence of OpcNodeManager instances which provide the address space of the server. The first node manager is used as the DefaultNodeManager.

Exceptions

ExceptionCondition
ArgumentExceptionThe address does not use one of the supported schemes 'opc.tcp' and 'https'.
ArgumentNullExceptionThe address or nodeManagers sequence or one of its items is a null reference (Nothing in Visual Basic).

OpcServerApplication(string, params OpcNodeManager[]) ​

Initializes a new instance of the OpcServerApplication class which hosts a new OpcServer using the address and nodeManagers specified.

csharp
public OpcServerApplication(
    string address,
    params OpcNodeManager[] nodeManagers)
vbnet
Public Sub New(address As String, ParamArray nodeManagers As OpcNodeManager())

Parameters

NameTypeDescription
addressStringThe string representation of the address of the server which needs to use one of the supported schemes 'opc.tcp' and 'https'.
nodeManagersparams OpcNodeManager[]An array of OpcNodeManager instances which provide the address space of the server. The first node manager is used as the DefaultNodeManager.

Exceptions

ExceptionCondition
ArgumentExceptionThe address is equals Empty or is not an absolute URI using one of the supported schemes 'opc.tcp' and 'https'.
ArgumentNullExceptionThe address or nodeManagers array or one of its items is a null reference (Nothing in Visual Basic).

OpcServerApplication(Uri, params OpcNodeManager[]) ​

Initializes a new instance of the OpcServerApplication class which hosts a new OpcServer using the address and nodeManagers specified.

csharp
public OpcServerApplication(Uri address, params OpcNodeManager[] nodeManagers)
vbnet
Public Sub New(address As Uri, ParamArray nodeManagers As OpcNodeManager())

Parameters

NameTypeDescription
addressUriThe Uri of the address of the server which needs to use one of the supported schemes 'opc.tcp' and 'https'.
nodeManagersparams OpcNodeManager[]An array of OpcNodeManager instances which provide the address space of the server. The first node manager is used as the DefaultNodeManager.

Exceptions

ExceptionCondition
ArgumentExceptionThe address does not use one of the supported schemes 'opc.tcp' and 'https'.
ArgumentNullExceptionThe address or nodeManagers array or one of its items is a null reference (Nothing in Visual Basic).