Skip to content

Reference

OpcEventDataView Members

Provides immutable access to the filtered event data.

Reference

OpcEventDataView Members ​

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

Properties ​

EventTypeId ​

Gets the node identifier identifying the type of event node the data of the view belongs to.

csharp
public OpcNodeId EventTypeId { get; }
vbnet
Public ReadOnly Property EventTypeId As OpcNodeId

Property value

OpcNodeId

An instance of the OpcNodeId in case there the Filter not includes type informaton a null reference (Nothing in Visual Basic).

Filter ​

Gets the OpcEventFilter used to gather the data of the view.

csharp
public OpcEventFilter Filter { get; }
vbnet
Public ReadOnly Property Filter As OpcEventFilter

Property value

OpcEventFilter

The OpcEventFilter which defines the circumstances under which the data has been charged.

Methods ​

Create ​

static

Creates a new instance of the OpcEventDataView using the context, filter and data specified.

csharp
public static OpcEventDataView Create(
    OpcContext context,
    OpcEventFilter filter,
    IEnumerable<object> data)
vbnet
Public Shared Function Create(
    context As OpcContext,
    filter As OpcEventFilter,
    data As IEnumerable(Of Object)) As OpcEventDataView

Parameters

NameTypeDescription
contextOpcContextThe OpcContext to which the new OpcEventDataView belongs to.
filterOpcEventFilterThe OpcEventFilter whose SelectClause defines the order of the data.
dataIEnumerable<Object>A sequence of object values in the same order as the select-clause operands of the filter. Pass null for fields that are not available.

Returns

OpcEventDataView

A new instance of the OpcEventDataView representing the event data of an OpcEvent instance.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe context, filter or data is a null reference (Nothing in Visual Basic).

Get ​

6 overloads

OverloadDescription
Get<T>(string)Retrieves the Value attribute of the element browsable through the name specified.
Get<T>(OpcName)Retrieves the Value attribute of the element browsable through the name specified.
Get<T>(OpcAttribute, string)Retrieves the value of the attribute of the element browsable through the name specified.
Get<T>(OpcAttribute, OpcName)Retrieves the value of the attribute of the element browsable through the name specified.
Get<T>(OpcAttribute, params OpcName[])Retrieves the value of the attribute of the element browsable through the pathElements specified.
Get<T>(OpcAttribute, OpcNamePath)Retrieves the value of the attribute of the element browsable through the path specified.

Get<T>(string) ​

Retrieves the Value attribute of the element browsable through the name specified.

csharp
public T Get<T>(string name = "")
vbnet
Public Function [Get](Of T)(name As String = "") As T

Type parameters

NameDescription
TThe type of the value to query.

Parameters

NameTypeDescription
nameStringThe string formatted OpcName to use to browse to the element from that the requested Value attribute is to be retrieved. Optional, default "".

Returns

T

The T of the attribute of the element requested or the default value if the attribute value is not of the type specified by T.

Implements

Get

Get<T>(OpcName) ​

Retrieves the Value attribute of the element browsable through the name specified.

csharp
public T Get<T>(OpcName name)
vbnet
Public Function [Get](Of T)(name As OpcName) As T

Type parameters

NameDescription
TThe type of value to query.

Parameters

NameTypeDescription
nameOpcNameThe OpcName to use to browse to the element from that the requested Value attribute is to be retrieved.

Returns

T

The T of the attribute of the element requested or the default value if the attribute value is not of the type specified by T.

Implements

Get

Get<T>(OpcAttribute, string) ​

Retrieves the value of the attribute of the element browsable through the name specified.

csharp
public T Get<T>(OpcAttribute attribute, string name = "")
vbnet
Public Function [Get](Of T)(attribute As OpcAttribute, name As String = "") As T

Type parameters

NameDescription
TThe type of value to query.

Parameters

NameTypeDescription
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration identifying the attribute value to query from the element specified by the name.
nameStringThe string formatted OpcName to use to browse to the element from that the requested attribute value is to be retrieved. Optional, default "".

Returns

T

The T of the attribute of the element requested or the default value if the attribute value is not of the type specified by T.

Implements

Get

Get<T>(OpcAttribute, OpcName) ​

Retrieves the value of the attribute of the element browsable through the name specified.

csharp
public T Get<T>(OpcAttribute attribute, OpcName name)
vbnet
Public Function [Get](Of T)(attribute As OpcAttribute, name As OpcName) As T

Type parameters

NameDescription
TThe type of value to query.

Parameters

NameTypeDescription
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration identifying the attribute value to query from the element specified by the name.
nameOpcNameThe OpcName to use to browse to the element from that the requested attribute value is to be retrieved.

Returns

T

The T of the attribute of the element requested or the default value if the attribute value is not of the type specified by T.

Implements

Get

Get<T>(OpcAttribute, params OpcName[]) ​

Retrieves the value of the attribute of the element browsable through the pathElements specified.

csharp
public T Get<T>(OpcAttribute attribute, params OpcName[] pathElements)
vbnet
Public Function [Get](Of T)(
    attribute As OpcAttribute,
    ParamArray pathElements As OpcName()) As T

Type parameters

NameDescription
TThe type of value to query.

Parameters

NameTypeDescription
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration identifying the attribute value to query from the element specified by the pathElements.
pathElementsparams OpcName[]The OpcName's to use to browse to the element from that the requested attribute value is to be retrieved.

Returns

T

The T of the attribute of the element requested or the default value if the attribute value is not of the type specified by T.

Exceptions

ExceptionCondition
ArgumentNullExceptionOne of the items in pathElements is a null reference (Nothing in Visual Basic).

Implements

Get

Get<T>(OpcAttribute, OpcNamePath) ​

Retrieves the value of the attribute of the element browsable through the path specified.

csharp
public T Get<T>(OpcAttribute attribute, OpcNamePath path)
vbnet
Public Function [Get](Of T)(attribute As OpcAttribute, path As OpcNamePath) As T

Type parameters

NameDescription
TThe type of value to query.

Parameters

NameTypeDescription
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration identifying the attribute value to query from the element specified by the path.
pathOpcNamePathThe sequence OpcName instances to use to browse to the element from that the requested attribute value is to be retrieved.

Returns

T

The T of the attribute of the element requested or the default value if the attribute value is not of the type specified by T.

Exceptions

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

Implements

Get

ToArray ​

Copies the elements of this data store to a new array.

csharp
public object[] ToArray()
vbnet
Public Function ToArray() As Object()

Returns

Object[]

An object array containing copies of the elements of this data store.

Implements

ToArray