Skip to content

Reference

OpcNotification Members

Represents a notification message a client received for a subscription, as defined by the NotificationMessage of OPC UA.

Reference

OpcNotification Members ​

Type
OpcNotification
Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Also in
Opc.UaFx.Client

Properties ​

Data ​

Gets the data sets of the notification.

csharp
public OpcNotificationDataSetReadOnlyCollection Data { get; }
vbnet
Public ReadOnly Property Data As OpcNotificationDataSetReadOnlyCollection

Property value

OpcNotificationDataSetReadOnlyCollection

A read-only collection of the OpcDataChangeDataSet and OpcEventDataSet instances of the notification.

Remarks

Notifications of other kinds, e.g. status change notifications, are not part of the collection.

PublishTime ​

Gets the time the server sent the notification.

csharp
public DateTime? PublishTime { get; }
vbnet
Public ReadOnly Property PublishTime As Date?

Property value

Nullable<DateTime>

The time the server sent the notification, or a null reference (Nothing in Visual Basic) if it is not known.

SequenceNumber ​

Gets the sequence number of the notification.

csharp
public long SequenceNumber { get; }
vbnet
Public ReadOnly Property SequenceNumber As Long

Property value

Int64

The number which the server assigned to the notification within the subscription.

Methods ​

GetDataChanges ​

Retrieves the data changes of all OpcDataChangeDataSet instances of the notification.

csharp
public IEnumerable<OpcDataChangeDataSetItem> GetDataChanges()
vbnet
Public Function GetDataChanges() As IEnumerable(Of OpcDataChangeDataSetItem)

Returns

IEnumerable<OpcDataChangeDataSetItem>

A sequence of the OpcDataChangeDataSetItem instances of the notification.

GetEvents ​

Retrieves the events of all OpcEventDataSet instances of the notification.

csharp
public IEnumerable<OpcEventDataSetItem> GetEvents()
vbnet
Public Function GetEvents() As IEnumerable(Of OpcEventDataSetItem)

Returns

IEnumerable<OpcEventDataSetItem>

A sequence of the OpcEventDataSetItem instances of the notification.