Skip to content

Reference

OpcContentFilterElement Members

Represents an element of an OpcContentFilter, which applies an operator to its operands.

Reference

OpcContentFilterElement Members ​

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

Constructors ​

OpcContentFilterElement ​

2 overloads

OverloadDescription
OpcContentFilterElement(OpcFilterOperator, params OpcFilterOperand[])Initializes a new instance of the OpcContentFilterElement class using the elementOperator and elementOperands specified.
OpcContentFilterElement(OpcFilterOperator, IEnumerable<OpcFilterOperand>)Initializes a new instance of the OpcContentFilterElement class using the elementOperator and elementOperands specified.

Exceptions (all overloads)

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

OpcContentFilterElement(OpcFilterOperator, params OpcFilterOperand[]) ​

Initializes a new instance of the OpcContentFilterElement class using the elementOperator and elementOperands specified.

csharp
public OpcContentFilterElement(
    OpcFilterOperator elementOperator,
    params OpcFilterOperand[] elementOperands)
vbnet
Public Sub New(
    elementOperator As OpcFilterOperator,
    ParamArray elementOperands As OpcFilterOperand())

Parameters

NameTypeDescription
elementOperatorOpcFilterOperatorThe operator of the element.
elementOperandsparams OpcFilterOperand[]The operands of the element.

OpcContentFilterElement(OpcFilterOperator, IEnumerable<OpcFilterOperand>) ​

Initializes a new instance of the OpcContentFilterElement class using the elementOperator and elementOperands specified.

csharp
public OpcContentFilterElement(
    OpcFilterOperator elementOperator,
    IEnumerable<OpcFilterOperand> elementOperands)
vbnet
Public Sub New(
    elementOperator As OpcFilterOperator,
    elementOperands As IEnumerable(Of OpcFilterOperand))

Parameters

NameTypeDescription
elementOperatorOpcFilterOperatorThe operator of the element.
elementOperandsIEnumerable<OpcFilterOperand>A sequence of the operands of the element.

Properties ​

Operands ​

Gets the operands of the element.

csharp
public OpcFilterOperandReadOnlyCollection Operands { get; }
vbnet
Public ReadOnly Property Operands As OpcFilterOperandReadOnlyCollection

Property value

OpcFilterOperandReadOnlyCollection

A read-only collection of the operands in the order the operator uses them.

Operator ​

Gets the operator of the element.

csharp
public OpcFilterOperator Operator { get; }
vbnet
Public ReadOnly Property [Operator] As OpcFilterOperator

Property value

OpcFilterOperator

The operator applied to the Operands.

Methods ​

ToString ​

override

Returns a string that represents the element.

csharp
public override string ToString()
vbnet
Public Overrides Function ToString() As String

Returns

String

The string representation of the element provided by the OPC UA stack.

Overrides

ToString()

Operators ​

BitwiseAnd ​

static · 3 overloads

OverloadDescription
operator &(OpcContentFilter, OpcContentFilterElement)staticCombines the filter left and the element right using a logical AND.
operator &(OpcContentFilterElement, OpcContentFilter)staticCombines the element left and the filter right using a logical AND.
operator &(OpcContentFilterElement, OpcContentFilterElement)staticCreates a filter which combines the elements left and right using a logical AND.

Exceptions (all overloads)

ExceptionCondition
ArgumentNullExceptionThe left or right is a null reference (Nothing in Visual Basic).

operator &(OpcContentFilter, OpcContentFilterElement) ​

static

Combines the filter left and the element right using a logical AND.

csharp
public static OpcContentFilter operator &(
    OpcContentFilter left,
    OpcContentFilterElement right)
vbnet
Public Shared Operator And(
    left As OpcContentFilter,
    right As OpcContentFilterElement) As OpcContentFilter

Parameters

NameTypeDescription
leftOpcContentFilterThe filter to combine.
rightOpcContentFilterElementThe element to combine.

Returns

OpcContentFilter

The filter left, which has been extended by an element using the operator And.

Remarks

The filter left is changed and returned. The new element combines the filter as it has been so far with the other element.

operator &(OpcContentFilterElement, OpcContentFilter) ​

static

Combines the element left and the filter right using a logical AND.

csharp
public static OpcContentFilter operator &(
    OpcContentFilterElement left,
    OpcContentFilter right)
vbnet
Public Shared Operator And(
    left As OpcContentFilterElement,
    right As OpcContentFilter) As OpcContentFilter

Parameters

NameTypeDescription
leftOpcContentFilterElementThe element to combine.
rightOpcContentFilterThe filter to combine.

Returns

OpcContentFilter

The filter right, which has been extended by an element using the operator And.

Remarks

The filter right is changed and returned. The new element combines the filter as it has been so far with the other element.

operator &(OpcContentFilterElement, OpcContentFilterElement) ​

static

Creates a filter which combines the elements left and right using a logical AND.

csharp
public static OpcContentFilter operator &(
    OpcContentFilterElement left,
    OpcContentFilterElement right)
vbnet
Public Shared Operator And(
    left As OpcContentFilterElement,
    right As OpcContentFilterElement) As OpcContentFilter

Parameters

NameTypeDescription
leftOpcContentFilterElementThe element to combine.
rightOpcContentFilterElementThe element to combine.

Returns

OpcContentFilter

A new OpcContentFilter whose element using the operator And combines both elements.

BitwiseOr ​

static · 3 overloads

OverloadDescription
operator |(OpcContentFilter, OpcContentFilterElement)staticCombines the filter left and the element right using a logical OR.
operator |(OpcContentFilterElement, OpcContentFilter)staticCombines the element left and the filter right using a logical OR.
operator |(OpcContentFilterElement, OpcContentFilterElement)staticCreates a filter which combines the elements left and right using a logical OR.

Exceptions (all overloads)

ExceptionCondition
ArgumentNullExceptionThe left or right is a null reference (Nothing in Visual Basic).

operator |(OpcContentFilter, OpcContentFilterElement) ​

static

Combines the filter left and the element right using a logical OR.

csharp
public static OpcContentFilter operator |(
    OpcContentFilter left,
    OpcContentFilterElement right)
vbnet
Public Shared Operator Or(
    left As OpcContentFilter,
    right As OpcContentFilterElement) As OpcContentFilter

Parameters

NameTypeDescription
leftOpcContentFilterThe filter to combine.
rightOpcContentFilterElementThe element to combine.

Returns

OpcContentFilter

The filter left, which has been extended by an element using the operator Or.

Remarks

The filter left is changed and returned. The new element combines the filter as it has been so far with the other element.

operator |(OpcContentFilterElement, OpcContentFilter) ​

static

Combines the element left and the filter right using a logical OR.

csharp
public static OpcContentFilter operator |(
    OpcContentFilterElement left,
    OpcContentFilter right)
vbnet
Public Shared Operator Or(
    left As OpcContentFilterElement,
    right As OpcContentFilter) As OpcContentFilter

Parameters

NameTypeDescription
leftOpcContentFilterElementThe element to combine.
rightOpcContentFilterThe filter to combine.

Returns

OpcContentFilter

The filter right, which has been extended by an element using the operator Or.

Remarks

The filter right is changed and returned. The new element combines the filter as it has been so far with the other element.

operator |(OpcContentFilterElement, OpcContentFilterElement) ​

static

Creates a filter which combines the elements left and right using a logical OR.

csharp
public static OpcContentFilter operator |(
    OpcContentFilterElement left,
    OpcContentFilterElement right)
vbnet
Public Shared Operator Or(
    left As OpcContentFilterElement,
    right As OpcContentFilterElement) As OpcContentFilter

Parameters

NameTypeDescription
leftOpcContentFilterElementThe element to combine.
rightOpcContentFilterElementThe element to combine.

Returns

OpcContentFilter

A new OpcContentFilter whose element using the operator Or combines both elements.