Skip to content

Reference

OpcServer Members

Represents an OPC UA server which provides the address space defined by its NodeManagers to its clients.

Reference

OpcServer Members ​

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

Inherits members from OpcServerBase, OpcApplicationInstance<OpcTransport, OpcServerSecurity>.

Constructors ​

OpcServer ​

18 overloads

OverloadDescription
OpcServer()Initializes a new instance of the OpcServer class using the DefaultAddress.
OpcServer(IEnumerable<OpcNodeManager>)Initializes a new instance of the OpcServer class using the DefaultAddress and the nodeManagers specified to provide its address space.
OpcServer(params OpcNodeManager[])Initializes a new instance of the OpcServer class using the DefaultAddress and the nodeManagers specified to provide its address space.
OpcServer(Action<OpcAddressSpace>)Initializes a new instance of the OpcServer class using the DefaultAddress and the createNodes callback specified to create the nodes of its address space.
OpcServer(IEnumerable<IOpcNode>)Initializes a new instance of the OpcServer class using the DefaultAddress to provide the nodes specified in its address space.
OpcServer(params IOpcNode[])Initializes a new instance of the OpcServer class using the DefaultAddress to provide the nodes specified in its address space.
OpcServer(string)Initializes a new instance of the OpcServer class using the address specified.
OpcServer(Uri)Initializes a new instance of the OpcServer class using the address specified.
OpcServer(string, IEnumerable<OpcNodeManager>)Initializes a new instance of the OpcServer class using the address specified and the nodeManagers specified to provide its address space.
OpcServer(Uri, IEnumerable<OpcNodeManager>)Initializes a new instance of the OpcServer class using the address specified and the nodeManagers specified to provide its address space.
OpcServer(string, params OpcNodeManager[])Initializes a new instance of the OpcServer class using the address specified and the nodeManagers specified to provide its address space.
OpcServer(Uri, params OpcNodeManager[])Initializes a new instance of the OpcServer class using the address specified and the nodeManagers specified to provide its address space.
OpcServer(string, Action<OpcAddressSpace>)Initializes a new instance of the OpcServer class using the address specified and the createNodes callback specified to create the nodes of its address space.
OpcServer(Uri, Action<OpcAddressSpace>)Initializes a new instance of the OpcServer class using the address specified and the createNodes callback specified to create the nodes of its address space.
OpcServer(string, IEnumerable<IOpcNode>)Initializes a new instance of the OpcServer class using the address specified to provide the nodes specified in its address space.
OpcServer(Uri, IEnumerable<IOpcNode>)Initializes a new instance of the OpcServer class using the address specified to provide the nodes specified in its address space.
OpcServer(string, params IOpcNode[])Initializes a new instance of the OpcServer class using the address specified to provide the nodes specified in its address space.
OpcServer(Uri, params IOpcNode[])Initializes a new instance of the OpcServer class using the address specified to provide the nodes specified in its address space.

OpcServer() ​

Initializes a new instance of the OpcServer class using the DefaultAddress.

csharp
public OpcServer()
vbnet
Public Sub New()

OpcServer(IEnumerable<OpcNodeManager>) ​

Initializes a new instance of the OpcServer class using the DefaultAddress and the nodeManagers specified to provide its address space.

csharp
public OpcServer(IEnumerable<OpcNodeManager> nodeManagers)
vbnet
Public Sub New(nodeManagers As IEnumerable(Of OpcNodeManager))

Parameters

NameTypeDescription
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
ArgumentNullExceptionThe nodeManagers sequence or one of its items is a null reference (Nothing in Visual Basic).

OpcServer(params OpcNodeManager[]) ​

Initializes a new instance of the OpcServer class using the DefaultAddress and the nodeManagers specified to provide its address space.

csharp
public OpcServer(params OpcNodeManager[] nodeManagers)
vbnet
Public Sub New(ParamArray nodeManagers As OpcNodeManager())

Parameters

NameTypeDescription
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
ArgumentNullExceptionThe nodeManagers array or one of its items is a null reference (Nothing in Visual Basic).

OpcServer(Action<OpcAddressSpace>) ​

Initializes a new instance of the OpcServer class using the DefaultAddress and the createNodes callback specified to create the nodes of its address space.

csharp
public OpcServer(Action<OpcAddressSpace> createNodes)
vbnet
Public Sub New(createNodes As Action(Of OpcAddressSpace))

Parameters

NameTypeDescription
createNodesAction<OpcAddressSpace>The callback which is called with an OpcAddressSpace to create the nodes of the address space of the server.

Exceptions

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

OpcServer(IEnumerable<IOpcNode>) ​

Initializes a new instance of the OpcServer class using the DefaultAddress to provide the nodes specified in its address space.

csharp
public OpcServer(IEnumerable<IOpcNode> nodes)
vbnet
Public Sub New(nodes As IEnumerable(Of IOpcNode))

Parameters

NameTypeDescription
nodesIEnumerable<IOpcNode>A sequence of the nodes to add to the address space of the server.

Exceptions

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

Remarks

The constructor does not verify the items of the nodes; a node which is a null reference causes Start to throw an OpcException.

OpcServer(params IOpcNode[]) ​

Initializes a new instance of the OpcServer class using the DefaultAddress to provide the nodes specified in its address space.

csharp
public OpcServer(params IOpcNode[] nodes)
vbnet
Public Sub New(ParamArray nodes As IOpcNode())

Parameters

NameTypeDescription
nodesparams IOpcNode[]An array of the nodes to add to the address space of the server.

Exceptions

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

Remarks

The constructor does not verify the items of the nodes; a node which is a null reference causes Start to throw an OpcException.

OpcServer(string) ​

Initializes a new instance of the OpcServer class using the address specified.

csharp
public OpcServer(string address)
vbnet
Public Sub New(address As String)

Parameters

NameTypeDescription
addressStringThe string representation of the address of the server which needs to use one of the supported schemes 'opc.tcp' and 'https'.

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 is a null reference (Nothing in Visual Basic).

OpcServer(Uri) ​

Initializes a new instance of the OpcServer class using the address specified.

csharp
public OpcServer(Uri address)
vbnet
Public Sub New(address As Uri)

Parameters

NameTypeDescription
addressUriThe Uri of the address of the server which needs to use one of the supported schemes 'opc.tcp' and 'https'.

Exceptions

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

OpcServer(string, IEnumerable<OpcNodeManager>) ​

Initializes a new instance of the OpcServer class using the address specified and the nodeManagers specified to provide its address space.

csharp
public OpcServer(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).

OpcServer(Uri, IEnumerable<OpcNodeManager>) ​

Initializes a new instance of the OpcServer class using the address specified and the nodeManagers specified to provide its address space.

csharp
public OpcServer(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).

OpcServer(string, params OpcNodeManager[]) ​

Initializes a new instance of the OpcServer class using the address specified and the nodeManagers specified to provide its address space.

csharp
public OpcServer(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).

OpcServer(Uri, params OpcNodeManager[]) ​

Initializes a new instance of the OpcServer class using the address specified and the nodeManagers specified to provide its address space.

csharp
public OpcServer(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).

OpcServer(string, Action<OpcAddressSpace>) ​

Initializes a new instance of the OpcServer class using the address specified and the createNodes callback specified to create the nodes of its address space.

csharp
public OpcServer(string address, Action<OpcAddressSpace> createNodes)
vbnet
Public Sub New(address As String, createNodes As Action(Of OpcAddressSpace))

Parameters

NameTypeDescription
addressStringThe string representation of the address of the server which needs to use one of the supported schemes 'opc.tcp' and 'https'.
createNodesAction<OpcAddressSpace>The callback which is called with an OpcAddressSpace to create the nodes of the address space of the server.

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 createNodes is a null reference (Nothing in Visual Basic).

OpcServer(Uri, Action<OpcAddressSpace>) ​

Initializes a new instance of the OpcServer class using the address specified and the createNodes callback specified to create the nodes of its address space.

csharp
public OpcServer(Uri address, Action<OpcAddressSpace> createNodes)
vbnet
Public Sub New(address As Uri, createNodes As Action(Of OpcAddressSpace))

Parameters

NameTypeDescription
addressUriThe Uri of the address of the server which needs to use one of the supported schemes 'opc.tcp' and 'https'.
createNodesAction<OpcAddressSpace>The callback which is called with an OpcAddressSpace to create the nodes of the address space of the server.

Exceptions

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

OpcServer(string, IEnumerable<IOpcNode>) ​

Initializes a new instance of the OpcServer class using the address specified to provide the nodes specified in its address space.

csharp
public OpcServer(string address, IEnumerable<IOpcNode> nodes)
vbnet
Public Sub New(address As String, nodes As IEnumerable(Of IOpcNode))

Parameters

NameTypeDescription
addressStringThe string representation of the address of the server which needs to use one of the supported schemes 'opc.tcp' and 'https'.
nodesIEnumerable<IOpcNode>A sequence of the nodes to add to the address space of the server.

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 nodes sequence is a null reference (Nothing in Visual Basic).

Remarks

The constructor does not verify the items of the nodes; a node which is a null reference causes Start to throw an OpcException.

OpcServer(Uri, IEnumerable<IOpcNode>) ​

Initializes a new instance of the OpcServer class using the address specified to provide the nodes specified in its address space.

csharp
public OpcServer(Uri address, IEnumerable<IOpcNode> nodes)
vbnet
Public Sub New(address As Uri, nodes As IEnumerable(Of IOpcNode))

Parameters

NameTypeDescription
addressUriThe Uri of the address of the server which needs to use one of the supported schemes 'opc.tcp' and 'https'.
nodesIEnumerable<IOpcNode>A sequence of the nodes to add to the address space of the server.

Exceptions

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

Remarks

The constructor does not verify the items of the nodes; a node which is a null reference causes Start to throw an OpcException.

OpcServer(string, params IOpcNode[]) ​

Initializes a new instance of the OpcServer class using the address specified to provide the nodes specified in its address space.

csharp
public OpcServer(string address, params IOpcNode[] nodes)
vbnet
Public Sub New(address As String, ParamArray nodes As IOpcNode())

Parameters

NameTypeDescription
addressStringThe string representation of the address of the server which needs to use one of the supported schemes 'opc.tcp' and 'https'.
nodesparams IOpcNode[]An array of the nodes to add to the address space of the server.

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 nodes array is a null reference (Nothing in Visual Basic).

Remarks

The constructor does not verify the items of the nodes; a node which is a null reference causes Start to throw an OpcException.

OpcServer(Uri, params IOpcNode[]) ​

Initializes a new instance of the OpcServer class using the address specified to provide the nodes specified in its address space.

csharp
public OpcServer(Uri address, params IOpcNode[] nodes)
vbnet
Public Sub New(address As Uri, ParamArray nodes As IOpcNode())

Parameters

NameTypeDescription
addressUriThe Uri of the address of the server which needs to use one of the supported schemes 'opc.tcp' and 'https'.
nodesparams IOpcNode[]An array of the nodes to add to the address space of the server.

Exceptions

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

Remarks

The constructor does not verify the items of the nodes; a node which is a null reference causes Start to throw an OpcException.

Fields ​

DefaultAddress ​

static

Defines the default address (opc.tcp://localhost:4840) used by the constructors of the OpcServer which do not take an address.

csharp
public static readonly Uri DefaultAddress
vbnet
Public Shared ReadOnly DefaultAddress As Uri

Field value

Uri

Properties ​

DefaultNodeManager ​

Gets the node manager used as the default node manager of the OpcServer.

csharp
public OpcNodeManager DefaultNodeManager { get; }
vbnet
Public ReadOnly Property DefaultNodeManager As OpcNodeManager

Property value

OpcNodeManager

The first OpcNodeManager of the NodeManagers. When the server is started without any node manager, a new default node manager is created and added to the NodeManagers. Before the server has been started the value is the first node manager passed to the constructor or a null reference (Nothing in Visual Basic).

Diagnostics ​

Gets the diagnostic summary information of the OpcServer.

csharp
public OpcServerDiagnostics Diagnostics { get; }
vbnet
Public ReadOnly Property Diagnostics As OpcServerDiagnostics

Property value

OpcServerDiagnostics

An instance of the OpcServerDiagnostics class which provides the diagnostic summary information for the server.

Discovery ​

since v2.58

Gets the settings the OpcServer uses to make itself known to discovery servers.

csharp
public OpcServerDiscovery Discovery { get; }
vbnet
Public ReadOnly Property Discovery As OpcServerDiscovery

Property value

OpcServerDiscovery

An instance of the OpcServerDiscovery class.

EstimatedReturnTime ​

since v2.51

Gets or sets a value indicating the time at which the OpcServer is expected to be running.

csharp
public DateTime? EstimatedReturnTime { get; set; }
vbnet
Public Property EstimatedReturnTime As Date?

Property value

Nullable<DateTime>

A DateTime indicating the time at which the OpcServer is expected to be running; MinValue if the estimated return time is unknown or a null reference (Nothing in Visual Basic) if the address space has not yet been created.

Exceptions

ExceptionCondition
InvalidOperationExceptionThe State is not equals Started.

Remarks

This time can be used to trigger the client to start its reconnect logic with some delay. Use a null reference (Nothing in Visual Basic) to set MinValue as the new value.

Globalization ​

since v2.11

Gets the OpcServerGlobalization instance used to control the localization and other globalization related tasks.

csharp
public OpcServerGlobalization Globalization { get; }
vbnet
Public ReadOnly Property Globalization As OpcServerGlobalization

Property value

OpcServerGlobalization

An instance of the OpcServerGlobalization class used by the current OpcServer to perform localization tasks.

NodeManagers ​

Gets the node managers which provide the address space of the OpcServer.

csharp
public OpcNodeManagerCollection NodeManagers { get; }
vbnet
Public ReadOnly Property NodeManagers As OpcNodeManagerCollection

Property value

OpcNodeManagerCollection

An OpcNodeManagerCollection of the OpcNodeManager instances used by the server.

OperationLimits ​

since v2.50

Gets the OpcOperationLimits instance used to maintain the different operation limits used by the server.

csharp
public OpcOperationLimits OperationLimits { get; }
vbnet
Public ReadOnly Property OperationLimits As OpcOperationLimits

Property value

OpcOperationLimits

An instance of the OpcOperationLimits class used by the application instance to setup and maintain the different operation limits.

SystemContext ​

override

Gets the OpcContext which is used to store the context sensitive data and configuration used by the current OpcServer instance.

csharp
public override OpcContext SystemContext { get; }
vbnet
Public Overrides ReadOnly Property SystemContext As OpcContext

Property value

OpcContext

An instance of the OpcContext class which might be at least Empty.

Overrides

SystemContext

UseDynamic ​

since v2.53

Gets or sets a value indicating whether the current OpcServer shall use generic types to represent dynamically defined custom types.

csharp
public bool UseDynamic { get; set; }
vbnet
Public Property UseDynamic As Boolean

Property value

Boolean

The value true if the current OpcServer shall use generic types constructed from the type information offered dynamically; otherwise the value false. The default value is determined by the UseDynamic property.

Methods ​

CreateConfiguration ​

protected · override

Creates the configuration of the OpcServer based on the configuration created by the base class. The user token policies of the configuration reflect the access control lists of the Security settings and the transport quotas reflect the Transport settings.

csharp
[CLSCompliant(false)]
protected override OpcApplicationConfiguration CreateConfiguration()
vbnet
<CLSCompliant(False)>
Protected Overrides Function CreateConfiguration() As OpcApplicationConfiguration

Returns

OpcApplicationConfiguration

A new instance of the OpcApplicationConfiguration class.

Overrides

CreateConfiguration

CreateOperationLimits ​

protected · since v2.50

Creates and initializes a new instance of the OpcOperationLimits which is used for the OperationLimits property.

csharp
protected OpcOperationLimits CreateOperationLimits()
vbnet
Protected Function CreateOperationLimits() As OpcOperationLimits

Returns

OpcOperationLimits

A new instance of the type specified by OpcOperationLimits.

GetDataType ​

6 overloads · since v2.22

OverloadDescription
GetDataType(string)since v2.22Retrieves the OpcDataTypeInfo object which is known under the name specified.
GetDataType(OpcName)since v2.22Retrieves the OpcDataTypeInfo object which is known under the name specified.
GetDataType(OpcNodeId)since v2.22Retrieves the OpcDataTypeInfo object which declares the type which is identified by the typeId specified.
GetDataType(Type)since v2.22Retrieves the OpcDataTypeInfo object which declares the type implemented by the underlyingType specified.
GetDataType(OpcEncoding)since v2.22Retrieves the OpcDataTypeInfo object which declares the type which is identified by the encoding specified.
GetDataType(XmlQualifiedName)since v2.22Retrieves the OpcDataTypeInfo object which is known under the xmlName specified.

Exceptions (all overloads)

ExceptionCondition
ObjectDisposedExceptionThe object has been disposed of.

GetDataType(string) ​

since v2.22

Retrieves the OpcDataTypeInfo object which is known under the name specified.

csharp
public OpcDataTypeInfo GetDataType(string name)
vbnet
Public Function GetDataType(name As String) As OpcDataTypeInfo

Parameters

NameTypeDescription
nameStringThe string to use to identify the OpcDataTypeInfo object to retrieve.

Returns

OpcDataTypeInfo

The OpcDataTypeInfo object its Name is equals (regarding its Value) to the name specified; otherwise a null reference (Nothing in Visual Basic).

Exceptions

ExceptionCondition
ArgumentExceptionThe name is equals Empty.
ArgumentNullExceptionThe name is a null reference (Nothing in Visual Basic).

GetDataType(OpcName) ​

since v2.22

Retrieves the OpcDataTypeInfo object which is known under the name specified.

csharp
public OpcDataTypeInfo GetDataType(OpcName name)
vbnet
Public Function GetDataType(name As OpcName) As OpcDataTypeInfo

Parameters

NameTypeDescription
nameOpcNameThe OpcName of the OpcDataTypeInfo object to retrieve.

Returns

OpcDataTypeInfo

The OpcDataTypeInfo object its Name is equals to the name specified; otherwise a null reference (Nothing in Visual Basic).

Exceptions

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

GetDataType(OpcNodeId) ​

since v2.22

Retrieves the OpcDataTypeInfo object which declares the type which is identified by the typeId specified.

csharp
public OpcDataTypeInfo GetDataType(OpcNodeId typeId)
vbnet
Public Function GetDataType(typeId As OpcNodeId) As OpcDataTypeInfo

Parameters

NameTypeDescription
typeIdOpcNodeIdThe OpcNodeId which identifies the OpcDataTypeInfo to retrieve.

Returns

OpcDataTypeInfo

The OpcDataTypeInfo object which is known under the typeId specified or a null reference (Nothing in Visual Basic) if there doesn't exist a known OpcDataTypeInfo object which is associated with the typeId specified.

Exceptions

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

GetDataType(Type) ​

since v2.22

Retrieves the OpcDataTypeInfo object which declares the type implemented by the underlyingType specified.

csharp
public OpcDataTypeInfo GetDataType(Type underlyingType)
vbnet
Public Function GetDataType(underlyingType As Type) As OpcDataTypeInfo

Parameters

NameTypeDescription
underlyingTypeTypeThe Type which implements the OpcDataTypeInfo to retrieve.

Returns

OpcDataTypeInfo

The OpcDataTypeInfo object which declares the underlyingType specified or a null reference (Nothing in Visual Basic) if there isn't a OpcDataTypeInfo object associated with the underlyingType specified.

Exceptions

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

GetDataType(OpcEncoding) ​

since v2.22

Retrieves the OpcDataTypeInfo object which declares the type which is identified by the encoding specified.

csharp
public OpcDataTypeInfo GetDataType(OpcEncoding encoding)
vbnet
Public Function GetDataType(encoding As OpcEncoding) As OpcDataTypeInfo

Parameters

NameTypeDescription
encodingOpcEncodingThe OpcEncoding which identifies the OpcDataTypeInfo to retrieve.

Returns

OpcDataTypeInfo

The OpcDataTypeInfo object which is known under the encoding specified or a null reference (Nothing in Visual Basic) if there doesn't exist a known OpcDataTypeInfo which is associated with the encoding specified.

Exceptions

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

GetDataType(XmlQualifiedName) ​

since v2.22

Retrieves the OpcDataTypeInfo object which is known under the xmlName specified.

csharp
public OpcDataTypeInfo GetDataType(XmlQualifiedName xmlName)
vbnet
Public Function GetDataType(xmlName As XmlQualifiedName) As OpcDataTypeInfo

Parameters

NameTypeDescription
xmlNameXmlQualifiedNameThe XmlQualifiedName of the OpcDataTypeInfo object to retrieve.

Returns

OpcDataTypeInfo

The OpcDataTypeInfo object its XmlName is equals to the xmlName specified; otherwise a null reference (Nothing in Visual Basic).

Exceptions

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

GetDataTypes ​

since v2.22

Retrieves all OpcDataTypeInfo objects offered by the IOpcTypeProvider.

csharp
public OpcDataTypeInfo[] GetDataTypes()
vbnet
Public Function GetDataTypes() As OpcDataTypeInfo()

Returns

OpcDataTypeInfo[]

An array that contains all OpcDataTypeInfo objects that are offered by the IOpcTypeProvider.

Exceptions

ExceptionCondition
ObjectDisposedExceptionThe object has been disposed of.

GetDataTypeSystems ​

since v2.22

Retrieves the systems used to describe the data exchanged via OPC UA.

csharp
public OpcDataTypeSystem[] GetDataTypeSystems()
vbnet
Public Function GetDataTypeSystems() As OpcDataTypeSystem()

Returns

OpcDataTypeSystem[]

An instance of the OpcDataTypeSystem class which can be used to understand the structure of the data exchanged using a specific type of encoding (see OpcEncodingType).

Exceptions

ExceptionCondition
InvalidOperationExceptionThe requested operation is currently not supported.
LicenseExceptionThe license is expired.
ObjectDisposedExceptionThe object has been disposed of.

GetEndpoints ​

Retrieves the endpoints provided by the OpcServer.

csharp
public IEnumerable<OpcEndpointDescription> GetEndpoints()
vbnet
Public Function GetEndpoints() As IEnumerable(Of OpcEndpointDescription)

Returns

IEnumerable<OpcEndpointDescription>

A sequence of OpcEndpointDescription instances describing the endpoints of the server.

Exceptions

ExceptionCondition
InvalidOperationExceptionThe server has not yet been started.
LicenseExceptionThe license is expired.
OpcExceptionThe endpoints could not be retrieved; for more details see exception details.
ObjectDisposedExceptionThe object has been disposed of.

GetNodeType ​

4 overloads · since v2.50

OverloadDescription
GetNodeType(string)since v2.50Retrieves the OpcNodeTypeInfo object which is known under the name specified.
GetNodeType(OpcName)since v2.50Retrieves the OpcNodeTypeInfo object which is known under the name specified.
GetNodeType(OpcNodeId)since v2.50Retrieves the OpcNodeTypeInfo object which declares the type which is identified by the typeId specified.
GetNodeType(Type)since v2.50Retrieves the OpcNodeTypeInfo object which declares the type implemented by the underlyingType specified.

Exceptions (all overloads)

ExceptionCondition
ObjectDisposedExceptionThe object has been disposed of.

GetNodeType(string) ​

since v2.50

Retrieves the OpcNodeTypeInfo object which is known under the name specified.

csharp
public OpcNodeTypeInfo GetNodeType(string name)
vbnet
Public Function GetNodeType(name As String) As OpcNodeTypeInfo

Parameters

NameTypeDescription
nameStringThe string to use to identify the OpcNodeTypeInfo object to retrieve.

Returns

OpcNodeTypeInfo

The OpcNodeTypeInfo object its Name is equals (regarding its Value) to the name specified; otherwise a null reference (Nothing in Visual Basic).

Exceptions

ExceptionCondition
ArgumentExceptionThe name is equals Empty.
ArgumentNullExceptionThe name is a null reference (Nothing in Visual Basic).

GetNodeType(OpcName) ​

since v2.50

Retrieves the OpcNodeTypeInfo object which is known under the name specified.

csharp
public OpcNodeTypeInfo GetNodeType(OpcName name)
vbnet
Public Function GetNodeType(name As OpcName) As OpcNodeTypeInfo

Parameters

NameTypeDescription
nameOpcNameThe OpcName of the OpcNodeTypeInfo object to retrieve.

Returns

OpcNodeTypeInfo

The OpcNodeTypeInfo object its Name is equals to the name specified; otherwise a null reference (Nothing in Visual Basic).

Exceptions

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

GetNodeType(OpcNodeId) ​

since v2.50

Retrieves the OpcNodeTypeInfo object which declares the type which is identified by the typeId specified.

csharp
public OpcNodeTypeInfo GetNodeType(OpcNodeId typeId)
vbnet
Public Function GetNodeType(typeId As OpcNodeId) As OpcNodeTypeInfo

Parameters

NameTypeDescription
typeIdOpcNodeIdThe OpcNodeId which identifies the OpcNodeTypeInfo to retrieve.

Returns

OpcNodeTypeInfo

The OpcNodeTypeInfo object which is known under the typeId specified or a null reference (Nothing in Visual Basic) if there doesn't exist a known OpcNodeTypeInfo object which is associated with the typeId specified.

Exceptions

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

GetNodeType(Type) ​

since v2.50

Retrieves the OpcNodeTypeInfo object which declares the type implemented by the underlyingType specified.

csharp
public OpcNodeTypeInfo GetNodeType(Type underlyingType)
vbnet
Public Function GetNodeType(underlyingType As Type) As OpcNodeTypeInfo

Parameters

NameTypeDescription
underlyingTypeTypeThe Type which implements the OpcNodeTypeInfo to retrieve.

Returns

OpcNodeTypeInfo

The OpcNodeTypeInfo object which declares the underlyingType specified or a null reference (Nothing in Visual Basic) if there isn't a OpcNodeTypeInfo object associated with the underlyingType specified.

Exceptions

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

GetNodeTypes ​

since v2.50

Retrieves all OpcNodeTypeInfo objects offered by the IOpcTypeProvider.

csharp
public OpcNodeTypeInfo[] GetNodeTypes()
vbnet
Public Function GetNodeTypes() As OpcNodeTypeInfo()

Returns

OpcNodeTypeInfo[]

An array that contains all OpcNodeTypeInfo objects that are offered by the IOpcTypeProvider.

Exceptions

ExceptionCondition
ObjectDisposedExceptionThe object has been disposed of.

GetNodeTypeSystem ​

since v2.50

Retrieves the system used to describe the structural organisation via OPC UA.

csharp
public OpcNodeTypeSystem GetNodeTypeSystem()
vbnet
Public Function GetNodeTypeSystem() As OpcNodeTypeSystem

Returns

OpcNodeTypeSystem

An instance of the OpcNodeTypeSystem class which can be used to understand the structural organisation of the nodes provided.

Exceptions

ExceptionCondition
LicenseExceptionThe license is expired.
ObjectDisposedExceptionThe object has been disposed of.

GetSession ​

since v2.11

Retrieves the OpcSession associated with the sessionId specified.

csharp
public OpcSession GetSession(OpcNodeId sessionId)
vbnet
Public Function GetSession(sessionId As OpcNodeId) As OpcSession

Parameters

NameTypeDescription
sessionIdOpcNodeIdThe OpcNodeId which uniquely identifies the session requested within the created sessions on the current OpcServer.

Returns

OpcSession

Exceptions

ExceptionCondition
ArgumentNullExceptionThe sessionId is a null reference (Nothing in Visual Basic).
InvalidOperationExceptionThe server has not yet been started.
ObjectDisposedExceptionThe object has been disposed of.

GetSessions ​

Retrieves all currently known sessions created on the current OpcServer.

csharp
public IEnumerable<OpcSession> GetSessions()
vbnet
Public Function GetSessions() As IEnumerable(Of OpcSession)

Returns

IEnumerable<OpcSession>

A sequence of OpcSession instances.

Exceptions

ExceptionCondition
InvalidOperationExceptionThe server has not yet been started.
LicenseExceptionThe license is expired.
ObjectDisposedExceptionThe object has been disposed of.

GetSubscriptions ​

since v2.50

Retrieves all currently known subscriptions created on the current OpcServer.

csharp
public IEnumerable<OpcSubscription> GetSubscriptions()
vbnet
Public Function GetSubscriptions() As IEnumerable(Of OpcSubscription)

Returns

IEnumerable<OpcSubscription>

A sequence of OpcSubscription instances.

Exceptions

ExceptionCondition
InvalidOperationExceptionThe server has not yet been started.
LicenseExceptionThe license is expired.
OpcExceptionThe subscriptions could not be retrieved; for more details see exception details.
ObjectDisposedExceptionThe object has been disposed of.

Remarks

The sequence returned is evaluated deferred: the state of the server is verified and the exceptions documented are thrown not before the sequence is enumerated.

OnCertificateChanged ​

protected · virtual · since v2.53

Raises the CertificateChanged event of the OpcServer.

csharp
protected virtual void OnCertificateChanged(OpcCertificateChangedEventArgs e)
vbnet
Protected Overridable Sub OnCertificateChanged(
    e As OpcCertificateChangedEventArgs)

Parameters

NameTypeDescription
eOpcCertificateChangedEventArgsThe event data.

OnRequestJudgement ​

protected · virtual · since v2.19

Raises the RequestJudgement event of the OpcServer.

csharp
protected virtual void OnRequestJudgement(OpcRequestJudgementEventArgs e)
vbnet
Protected Overridable Sub OnRequestJudgement(e As OpcRequestJudgementEventArgs)

Parameters

NameTypeDescription
eOpcRequestJudgementEventArgsThe event data.

OnRequestProcessed ​

protected · virtual · since v2.7

Raises the RequestProcessed event of the OpcServer.

csharp
protected virtual void OnRequestProcessed(OpcRequestProcessedEventArgs e)
vbnet
Protected Overridable Sub OnRequestProcessed(e As OpcRequestProcessedEventArgs)

Parameters

NameTypeDescription
eOpcRequestProcessedEventArgsThe event data.

OnRequestProcessing ​

protected · virtual · since v2.7

Raises the RequestProcessing event of the OpcServer.

csharp
protected virtual void OnRequestProcessing(OpcRequestProcessingEventArgs e)
vbnet
Protected Overridable Sub OnRequestProcessing(
    e As OpcRequestProcessingEventArgs)

Parameters

NameTypeDescription
eOpcRequestProcessingEventArgsThe event data.

OnRequestValidated ​

protected · virtual · since v2.7

Raises the RequestValidated event of the OpcServer.

csharp
protected virtual void OnRequestValidated(OpcRequestValidatedEventArgs e)
vbnet
Protected Overridable Sub OnRequestValidated(e As OpcRequestValidatedEventArgs)

Parameters

NameTypeDescription
eOpcRequestValidatedEventArgsThe event data.

OnRequestValidating ​

protected · virtual · since v2.7

Raises the RequestValidating event of the OpcServer.

csharp
protected virtual void OnRequestValidating(OpcRequestValidatingEventArgs e)
vbnet
Protected Overridable Sub OnRequestValidating(
    e As OpcRequestValidatingEventArgs)

Parameters

NameTypeDescription
eOpcRequestValidatingEventArgsThe event data.

OnSessionActivated ​

protected · virtual

Raises the SessionActivated event of the OpcServer.

csharp
protected virtual void OnSessionActivated(OpcSessionEventArgs e)
vbnet
Protected Overridable Sub OnSessionActivated(e As OpcSessionEventArgs)

Parameters

NameTypeDescription
eOpcSessionEventArgsThe event data.

OnSessionActivating ​

protected · virtual

Raises the SessionActivating event of the OpcServer.

csharp
protected virtual void OnSessionActivating(EventArgs e)
vbnet
Protected Overridable Sub OnSessionActivating(e As EventArgs)

Parameters

NameTypeDescription
eEventArgsThe event data.

OnSessionActivationFailed ​

protected · virtual · since v2.58

Raises the SessionActivationFailed event.

csharp
protected virtual void OnSessionActivationFailed(
    OpcSessionActivationFailedEventArgs e)
vbnet
Protected Overridable Sub OnSessionActivationFailed(
    e As OpcSessionActivationFailedEventArgs)

Parameters

NameTypeDescription
eOpcSessionActivationFailedEventArgsThe data describing the rejected activation.

OnSessionClosed ​

protected · virtual

Raises the SessionClosed event of the OpcServer.

csharp
protected virtual void OnSessionClosed(EventArgs e)
vbnet
Protected Overridable Sub OnSessionClosed(e As EventArgs)

Parameters

NameTypeDescription
eEventArgsThe event data.

OnSessionClosing ​

protected · virtual

Raises the SessionClosing event of the OpcServer.

csharp
protected virtual void OnSessionClosing(OpcSessionEventArgs e)
vbnet
Protected Overridable Sub OnSessionClosing(e As OpcSessionEventArgs)

Parameters

NameTypeDescription
eOpcSessionEventArgsThe event data.

OnSessionCreated ​

protected · virtual

Raises the SessionCreated event of the OpcServer.

csharp
protected virtual void OnSessionCreated(OpcSessionEventArgs e)
vbnet
Protected Overridable Sub OnSessionCreated(e As OpcSessionEventArgs)

Parameters

NameTypeDescription
eOpcSessionEventArgsThe event data.

OnSessionCreating ​

protected · virtual

Raises the SessionCreating event of the OpcServer.

csharp
protected virtual void OnSessionCreating(EventArgs e)
vbnet
Protected Overridable Sub OnSessionCreating(e As EventArgs)

Parameters

NameTypeDescription
eEventArgsThe event data.

OnSubscriptionCreated ​

protected · virtual

Raises the SubscriptionCreated event of the OpcServer.

csharp
protected virtual void OnSubscriptionCreated(OpcSubscriptionEventArgs e)
vbnet
Protected Overridable Sub OnSubscriptionCreated(e As OpcSubscriptionEventArgs)

Parameters

NameTypeDescription
eOpcSubscriptionEventArgsThe event data.

OnSubscriptionDeleted ​

protected · virtual

Raises the SubscriptionDeleted event of the OpcServer.

csharp
protected virtual void OnSubscriptionDeleted(OpcSubscriptionEventArgs e)
vbnet
Protected Overridable Sub OnSubscriptionDeleted(e As OpcSubscriptionEventArgs)

Parameters

NameTypeDescription
eOpcSubscriptionEventArgsThe event data.

OnTypeResolve ​

protected · virtual · since v2.53

Raises the TypeResolve event of the OpcServer.

csharp
protected virtual void OnTypeResolve(OpcTypeResolveEventArgs e)
vbnet
Protected Overridable Sub OnTypeResolve(e As OpcTypeResolveEventArgs)

Parameters

NameTypeDescription
eOpcTypeResolveEventArgsThe event data.

RegisterNamespace ​

3 overloads · since v2.50

OverloadDescription
RegisterNamespace(string)since v2.50Registers the namespaceUri specified in the namespace table of the OpcServer unless it is already registered.
RegisterNamespace(Uri)since v2.50Registers the namespaceUri specified in the namespace table of the OpcServer unless it is already registered.
RegisterNamespace(OpcNamespace)since v2.50Registers the URI of the namespace specified in the namespace table of the OpcServer unless it is already registered.

RegisterNamespace(string) ​

since v2.50

Registers the namespaceUri specified in the namespace table of the OpcServer unless it is already registered.

csharp
public OpcNamespace RegisterNamespace(string namespaceUri)
vbnet
Public Function RegisterNamespace(namespaceUri As String) As OpcNamespace

Parameters

NameTypeDescription
namespaceUriStringThe URI of the namespace to register.

Returns

OpcNamespace

An OpcNamespace which refers to the namespaceUri and its index in the namespace table of the server.

Exceptions

ExceptionCondition
ArgumentExceptionThe namespaceUri is equals Empty.
ArgumentNullExceptionThe namespaceUri is a null reference (Nothing in Visual Basic).

RegisterNamespace(Uri) ​

since v2.50

Registers the namespaceUri specified in the namespace table of the OpcServer unless it is already registered.

csharp
public OpcNamespace RegisterNamespace(Uri namespaceUri)
vbnet
Public Function RegisterNamespace(namespaceUri As Uri) As OpcNamespace

Parameters

NameTypeDescription
namespaceUriUriThe Uri of the namespace to register.

Returns

OpcNamespace

An OpcNamespace which refers to the namespaceUri and its index in the namespace table of the server.

Exceptions

ExceptionCondition
FormatExceptionThe namespaceUri is not a valid namespace (see Create).
ArgumentNullExceptionThe namespaceUri is a null reference (Nothing in Visual Basic).

Remarks

The namespaceUri is registered in the namespace table before it is verified to be a valid namespace; therefore it remains registered in case there a FormatException is thrown.

RegisterNamespace(OpcNamespace) ​

since v2.50

Registers the URI of the namespace specified in the namespace table of the OpcServer unless it is already registered.

csharp
public OpcNamespace RegisterNamespace(OpcNamespace @namespace)
vbnet
Public Function RegisterNamespace([namespace] As OpcNamespace) As OpcNamespace

Parameters

NameTypeDescription
namespaceOpcNamespaceThe OpcNamespace to register.

Returns

OpcNamespace

An OpcNamespace which refers to the URI of the namespace and its index in the namespace table of the server. This is either the namespace specified or a new instance.

Exceptions

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

RegisterNamespaces ​

6 overloads · since v2.50

OverloadDescription
RegisterNamespaces(IEnumerable<string>)since v2.50Registers each of the namespaces specified by the namespaceUris in the namespace table of the OpcServer unless it is already registered.
RegisterNamespaces(IEnumerable<Uri>)since v2.50Registers each of the namespaces specified by the namespaceUris in the namespace table of the OpcServer unless it is already registered.
RegisterNamespaces(IEnumerable<OpcNamespace>)since v2.50Registers each of the namespaces specified by the namespaces in the namespace table of the OpcServer unless it is already registered.
RegisterNamespaces(params string[])since v2.50Registers each of the namespaces specified by the namespaceUris in the namespace table of the OpcServer unless it is already registered.
RegisterNamespaces(params Uri[])since v2.50Registers each of the namespaces specified by the namespaceUris in the namespace table of the OpcServer unless it is already registered.
RegisterNamespaces(params OpcNamespace[])since v2.50Registers each of the namespaces specified by the namespaces in the namespace table of the OpcServer unless it is already registered.

RegisterNamespaces(IEnumerable<string>) ​

since v2.50

Registers each of the namespaces specified by the namespaceUris in the namespace table of the OpcServer unless it is already registered.

csharp
public OpcNamespace[] RegisterNamespaces(IEnumerable<string> namespaceUris)
vbnet
Public Function RegisterNamespaces(
    namespaceUris As IEnumerable(Of String)) As OpcNamespace()

Parameters

NameTypeDescription
namespaceUrisIEnumerable<String>A sequence of the URIs of the namespaces to register.

Returns

OpcNamespace[]

An array of the OpcNamespace instances which refer to the namespaces registered and their index in the namespace table of the server, in the order of the namespaceUris.

Exceptions

ExceptionCondition
ArgumentExceptionOne of the items of the namespaceUris is equals Empty.
ArgumentNullExceptionThe namespaceUris sequence or one of its items is a null reference (Nothing in Visual Basic).

RegisterNamespaces(IEnumerable<Uri>) ​

since v2.50

Registers each of the namespaces specified by the namespaceUris in the namespace table of the OpcServer unless it is already registered.

csharp
public OpcNamespace[] RegisterNamespaces(IEnumerable<Uri> namespaceUris)
vbnet
Public Function RegisterNamespaces(
    namespaceUris As IEnumerable(Of Uri)) As OpcNamespace()

Parameters

NameTypeDescription
namespaceUrisIEnumerable<Uri>A sequence of the Uri instances of the namespaces to register.

Returns

OpcNamespace[]

An array of the OpcNamespace instances which refer to the namespaces registered and their index in the namespace table of the server, in the order of the namespaceUris.

Exceptions

ExceptionCondition
FormatExceptionOne of the items of the namespaceUris is not a valid namespace (see Create).
ArgumentNullExceptionThe namespaceUris sequence or one of its items is a null reference (Nothing in Visual Basic).

RegisterNamespaces(IEnumerable<OpcNamespace>) ​

since v2.50

Registers each of the namespaces specified by the namespaces in the namespace table of the OpcServer unless it is already registered.

csharp
public OpcNamespace[] RegisterNamespaces(IEnumerable<OpcNamespace> namespaces)
vbnet
Public Function RegisterNamespaces(
    namespaces As IEnumerable(Of OpcNamespace)) As OpcNamespace()

Parameters

NameTypeDescription
namespacesIEnumerable<OpcNamespace>A sequence of the OpcNamespace instances to register.

Returns

OpcNamespace[]

An array of the OpcNamespace instances which refer to the namespaces registered and their index in the namespace table of the server, in the order of the namespaces.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe namespaces sequence or one of its items is a null reference (Nothing in Visual Basic).

RegisterNamespaces(params string[]) ​

since v2.50

Registers each of the namespaces specified by the namespaceUris in the namespace table of the OpcServer unless it is already registered.

csharp
public OpcNamespace[] RegisterNamespaces(params string[] namespaceUris)
vbnet
Public Function RegisterNamespaces(
    ParamArray namespaceUris As String()) As OpcNamespace()

Parameters

NameTypeDescription
namespaceUrisparams String[]An array of the URIs of the namespaces to register.

Returns

OpcNamespace[]

An array of the OpcNamespace instances which refer to the namespaces registered and their index in the namespace table of the server, in the order of the namespaceUris.

Exceptions

ExceptionCondition
ArgumentExceptionOne of the items of the namespaceUris is equals Empty.
ArgumentNullExceptionThe namespaceUris array or one of its items is a null reference (Nothing in Visual Basic).

RegisterNamespaces(params Uri[]) ​

since v2.50

Registers each of the namespaces specified by the namespaceUris in the namespace table of the OpcServer unless it is already registered.

csharp
public OpcNamespace[] RegisterNamespaces(params Uri[] namespaceUris)
vbnet
Public Function RegisterNamespaces(
    ParamArray namespaceUris As Uri()) As OpcNamespace()

Parameters

NameTypeDescription
namespaceUrisparams Uri[]An array of the Uri instances of the namespaces to register.

Returns

OpcNamespace[]

An array of the OpcNamespace instances which refer to the namespaces registered and their index in the namespace table of the server, in the order of the namespaceUris.

Exceptions

ExceptionCondition
FormatExceptionOne of the items of the namespaceUris is not a valid namespace (see Create).
ArgumentNullExceptionThe namespaceUris array or one of its items is a null reference (Nothing in Visual Basic).

RegisterNamespaces(params OpcNamespace[]) ​

since v2.50

Registers each of the namespaces specified by the namespaces in the namespace table of the OpcServer unless it is already registered.

csharp
public OpcNamespace[] RegisterNamespaces(params OpcNamespace[] namespaces)
vbnet
Public Function RegisterNamespaces(
    ParamArray namespaces As OpcNamespace()) As OpcNamespace()

Parameters

NameTypeDescription
namespacesparams OpcNamespace[]An array of the OpcNamespace instances to register.

Returns

OpcNamespace[]

An array of the OpcNamespace instances which refer to the namespaces registered and their index in the namespace table of the server, in the order of the namespaces.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe namespaces array or one of its items is a null reference (Nothing in Visual Basic).

ReportEvent ​

7 overloads

OverloadDescription
ReportEvent(OpcEventNode)Produces a global event using the eventNode specified.
ReportEvent(OpcEventSeverity, OpcText)Produces a global event using the event data specified.
ReportEvent(OpcEventSeverity, OpcText, params object[])Produces a global event using the event data specified.
ReportEvent(OpcNodeId, string, OpcEventSeverity, OpcText)Produces a global event using the event data specified.
ReportEvent(OpcNodeId, string, OpcEventSeverity, OpcText, params object[])Produces a global event using the event data specified.
ReportEvent(IOpcNode, OpcEventSeverity, OpcText)Produces a global event using the event data specified.
ReportEvent(IOpcNode, OpcEventSeverity, OpcText, params object[])Produces a global event using the event data specified.

Exceptions (all overloads)

ExceptionCondition
InvalidOperationExceptionThe State is not equals Started.
LicenseExceptionThe license is expired.
ObjectDisposedExceptionThe object has been disposed of.
OpcExceptionThe operation failed (see exception details for more information).

ReportEvent(OpcEventNode) ​

Produces a global event using the eventNode specified.

csharp
public void ReportEvent(OpcEventNode eventNode)
vbnet
Public Sub ReportEvent(eventNode As OpcEventNode)

Parameters

NameTypeDescription
eventNodeOpcEventNodeThe OpcEventNode its event information is to be reported as a global event.

Exceptions

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

ReportEvent(OpcEventSeverity, OpcText) ​

Produces a global event using the event data specified.

csharp
public void ReportEvent(OpcEventSeverity severity, OpcText message)
vbnet
Public Sub ReportEvent(severity As OpcEventSeverity, message As OpcText)

Parameters

NameTypeDescription
severityOpcEventSeverityAn indication of the urgency of the event.
messageOpcTextA human-readable and localizable text description of the event.

Exceptions

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

ReportEvent(OpcEventSeverity, OpcText, params object[]) ​

Produces a global event using the event data specified.

csharp
public void ReportEvent(
    OpcEventSeverity severity,
    OpcText message,
    params object[] arguments)
vbnet
Public Sub ReportEvent(
    severity As OpcEventSeverity,
    message As OpcText,
    ParamArray arguments As Object())

Parameters

NameTypeDescription
severityOpcEventSeverityAn indication of the urgency of the event.
messageOpcTextA human-readable and localizable text description of the event with format placeholders which where replaced with the arguments specified.
argumentsparams Object[]The values to place into the message using its format placeholders.

Exceptions

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

ReportEvent(OpcNodeId, string, OpcEventSeverity, OpcText) ​

Produces a global event using the event data specified.

csharp
public void ReportEvent(
    OpcNodeId sourceNodeId,
    string sourceName,
    OpcEventSeverity severity,
    OpcText message)
vbnet
Public Sub ReportEvent(
    sourceNodeId As OpcNodeId,
    sourceName As String,
    severity As OpcEventSeverity,
    message As OpcText)

Parameters

NameTypeDescription
sourceNodeIdOpcNodeIdThe OpcNodeId which is to be used for the SourceNodeId property to define the origin of the event produced.
sourceNameStringThe string which is to be used for the SourceName.
severityOpcEventSeverityAn indication of the urgency of the event.
messageOpcTextA human-readable and localizable text description of the event.

Exceptions

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

ReportEvent(OpcNodeId, string, OpcEventSeverity, OpcText, params object[]) ​

Produces a global event using the event data specified.

csharp
public void ReportEvent(
    OpcNodeId sourceNodeId,
    string sourceName,
    OpcEventSeverity severity,
    OpcText message,
    params object[] arguments)
vbnet
Public Sub ReportEvent(
    sourceNodeId As OpcNodeId,
    sourceName As String,
    severity As OpcEventSeverity,
    message As OpcText,
    ParamArray arguments As Object())

Parameters

NameTypeDescription
sourceNodeIdOpcNodeIdThe OpcNodeId which is to be used for the SourceNodeId property to define the origin of the event produced.
sourceNameStringThe string which is to be used for the SourceName.
severityOpcEventSeverityAn indication of the urgency of the event.
messageOpcTextA human-readable and localizable text description of the event with format placeholders which where replaced with the arguments specified.
argumentsparams Object[]The values to place into the message using its format placeholders.

Exceptions

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

ReportEvent(IOpcNode, OpcEventSeverity, OpcText) ​

Produces a global event using the event data specified.

csharp
public void ReportEvent(
    IOpcNode source,
    OpcEventSeverity severity,
    OpcText message)
vbnet
Public Sub ReportEvent(
    source As IOpcNode,
    severity As OpcEventSeverity,
    message As OpcText)

Parameters

NameTypeDescription
sourceIOpcNodeThe IOpcNode instance its Id is used for the SourceNodeId property and its SymbolicName is used for the SourceName property to define the origin of the event produced.
severityOpcEventSeverityAn indication of the urgency of the event.
messageOpcTextA human-readable and localizable text description of the event.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe source or message is a null reference (Nothing in Visual Basic).

ReportEvent(IOpcNode, OpcEventSeverity, OpcText, params object[]) ​

Produces a global event using the event data specified.

csharp
public void ReportEvent(
    IOpcNode source,
    OpcEventSeverity severity,
    OpcText message,
    params object[] arguments)
vbnet
Public Sub ReportEvent(
    source As IOpcNode,
    severity As OpcEventSeverity,
    message As OpcText,
    ParamArray arguments As Object())

Parameters

NameTypeDescription
sourceIOpcNodeThe IOpcNode instance its Id is used for the SourceNodeId property and its SymbolicName is used for the SourceName property to define the origin of the event produced.
severityOpcEventSeverityAn indication of the urgency of the event.
messageOpcTextA human-readable and localizable text description of the event with format placeholders which where replaced with the arguments specified.
argumentsparams Object[]The values to place into the message using its format placeholders.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe source or message is a null reference (Nothing in Visual Basic).

ResumeCore ​

protected · override · since v2.11

Resumes the suspended server by setting the state of its underlying server instance to running.

csharp
protected override void ResumeCore()
vbnet
Protected Overrides Sub ResumeCore()

Overrides

ResumeCore

StartCore ​

protected · override

Starts the server using the configuration specified. Before the server is started, the first node manager of the NodeManagers becomes the DefaultNodeManager; if there is no node manager a new default node manager is created and added to the NodeManagers.

csharp
[CLSCompliant(false)]
protected override void StartCore(OpcApplicationConfiguration configuration)
vbnet
<CLSCompliant(False)>
Protected Overrides Sub StartCore(configuration As OpcApplicationConfiguration)

Parameters

NameTypeDescription
configurationOpcApplicationConfigurationThe OpcApplicationConfiguration to use to start the server.

Exceptions

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

Overrides

StartCore

StopCore ​

protected · override

Stops the server.

csharp
protected override void StopCore()
vbnet
Protected Overrides Sub StopCore()

Overrides

StopCore

SuspendCore ​

protected · override · since v2.11

Suspends the server by setting the state of its underlying server instance to suspended.

csharp
protected override void SuspendCore()
vbnet
Protected Overrides Sub SuspendCore()

Overrides

SuspendCore

Events ​

CertificateChanged ​

since v2.53

Occurs when a new certificate has been assigned to the OpcServer through a OpcSession using an identity which is in the role SecurityAdmin.

csharp
public event OpcCertificateChangedEventHandler CertificateChanged
vbnet
Public Event CertificateChanged As OpcCertificateChangedEventHandler

Event type

OpcCertificateChangedEventHandler

RequestJudgement ​

since v2.19

Occurs when the validation of a request does not fulfill the requirements for a valid request.

csharp
public event OpcRequestJudgementEventHandler RequestJudgement
vbnet
Public Event RequestJudgement As OpcRequestJudgementEventHandler

Event type

OpcRequestJudgementEventHandler

Remarks

This event can be used to substitute the default judgement of such potential suspect situations which would otherwise throw an exception and reject a request.

RequestProcessed ​

since v2.7

Occurs after the server processed a request, whether it succeeded or failed.

csharp
public event OpcRequestProcessedEventHandler RequestProcessed
vbnet
Public Event RequestProcessed As OpcRequestProcessedEventHandler

Event type

OpcRequestProcessedEventHandler

Remarks

The request and the response are of the type of the service, such as OpcReadNodesRequest and OpcReadNodesResponse, for the services on nodes and on their history. For other services, such as those of sessions and discovery, they are only described by the RequestType.

A failed request states its error in the Exception.

RequestProcessing ​

since v2.7

Occurs as soon as the server received a request, before it checks the session and the user and before it decodes the request into the type of its service.

csharp
public event OpcRequestProcessingEventHandler RequestProcessing
vbnet
Public Event RequestProcessing As OpcRequestProcessingEventHandler

Event type

OpcRequestProcessingEventHandler

Remarks

The Request therefore only carries the request header. To inspect the content of a request or to reject it, use the RequestValidating event instead.

RequestValidated ​

since v2.7

Occurs after a request passed the validation, including the RequestValidating event, and right before the server processes it.

csharp
public event OpcRequestValidatedEventHandler RequestValidated
vbnet
Public Event RequestValidated As OpcRequestValidatedEventHandler

Event type

OpcRequestValidatedEventHandler

RequestValidating ​

since v2.7

Occurs after the server checked the session and the user of a request and before it processes the request.

csharp
public event OpcRequestValidatingEventHandler RequestValidating
vbnet
Public Event RequestValidating As OpcRequestValidatingEventHandler

Event type

OpcRequestValidatingEventHandler

Remarks

The Request is of the type of the service for the services on nodes and on their history, such as OpcReadNodesRequest, so that its content can be inspected. The Result states the result of the checks of the server.

Setting Cancel or a bad result rejects the request. The result set replaces the one of the server, so a good result also accepts a request the server would have rejected.

SessionActivated ​

Occurs when a session of the OpcServer has been activated.

csharp
public event OpcSessionEventHandler SessionActivated
vbnet
Public Event SessionActivated As OpcSessionEventHandler

Event type

OpcSessionEventHandler

SessionActivating ​

Occurs when a session of the OpcServer is about to be activated.

csharp
public event EventHandler SessionActivating
vbnet
Public Event SessionActivating As EventHandler

Event type

EventHandler

SessionActivationFailed ​

since v2.58

Occurs when the server rejects the activation of a session.

csharp
public event OpcSessionActivationFailedEventHandler SessionActivationFailed
vbnet
Public Event SessionActivationFailed As OpcSessionActivationFailedEventHandler

Event type

OpcSessionActivationFailedEventHandler

Remarks

The event covers every rejection, among them an unknown user name, a rejected certificate and a user token signature that does not verify.

SessionClosed ​

Occurs when a session of the OpcServer has been closed.

csharp
public event EventHandler SessionClosed
vbnet
Public Event SessionClosed As EventHandler

Event type

EventHandler

SessionClosing ​

Occurs when a session of the OpcServer is about to be closed.

csharp
public event OpcSessionEventHandler SessionClosing
vbnet
Public Event SessionClosing As OpcSessionEventHandler

Event type

OpcSessionEventHandler

SessionCreated ​

Occurs when a new session has been created on the OpcServer.

csharp
public event OpcSessionEventHandler SessionCreated
vbnet
Public Event SessionCreated As OpcSessionEventHandler

Event type

OpcSessionEventHandler

SessionCreating ​

Occurs when a new session is about to be created on the OpcServer.

csharp
public event EventHandler SessionCreating
vbnet
Public Event SessionCreating As EventHandler

Event type

EventHandler

SubscriptionCreated ​

Occurs when a new subscription is created through a OpcSession.

csharp
public event OpcSubscriptionEventHandler SubscriptionCreated
vbnet
Public Event SubscriptionCreated As OpcSubscriptionEventHandler

Event type

OpcSubscriptionEventHandler

SubscriptionDeleted ​

Occurs when an existing subscription of a OpcSession has been deleted.

csharp
public event OpcSubscriptionEventHandler SubscriptionDeleted
vbnet
Public Event SubscriptionDeleted As OpcSubscriptionEventHandler

Event type

OpcSubscriptionEventHandler

TypeResolve ​

since v2.53

Occurs before the resolution of a data type takes place. Use this event to manually provide the Type to use for a specific data type definition identifier.

csharp
public event OpcTypeResolveEventHandler TypeResolve
vbnet
Public Event TypeResolve As OpcTypeResolveEventHandler

Event type

OpcTypeResolveEventHandler