Reference
OpcFilterOperand Members
Provides an abstract base class for the operands of an OpcContentFilterElement, which creates the elements applying an operator to the operand.
Reference
OpcFilterOperand Members
- Type
- OpcFilterOperand
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
- Also in
- Opc.UaFx.Client
Constructors
OpcFilterOperand
Initializes a new instance of the OpcFilterOperand class using the content specified.
protected OpcFilterOperand(FilterOperand content)Protected Sub New(content As FilterOperand)Parameters
| Name | Type | Description |
|---|---|---|
content | FilterOperand | The FilterOperand to wrap, maintain and represented. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The content is a null reference ( |
Methods
Between
| Overload | Description |
|---|---|
| Between( | Creates an element which determines whether this operand is greater than or equal to the lower value and less than or equal to the upper value. |
| Between( | Creates an element which determines whether this operand is greater than or equal to the lower operand and less than or equal to the upper operand. |
Between(object, object)
Creates an element which determines whether this operand is greater than or equal to the lower value and less than or equal to the upper value.
public OpcContentFilterElement Between(object lower, object upper)Public Function Between(
lower As Object,
upper As Object) As OpcContentFilterElementParameters
| Name | Type | Description |
|---|---|---|
lower | Object | The lower bound, which is used as an Opc |
upper | Object | The upper bound, which is used as an Opc |
Returns
An OpcContentFilterElement using the operator Between whose operands are this operand and both bounds.
Between(OpcFilterOperand, OpcFilterOperand)
Creates an element which determines whether this operand is greater than or equal to the lower operand and less than or equal to the upper operand.
public OpcContentFilterElement Between(
OpcFilterOperand lower,
OpcFilterOperand upper)Public Function Between(
lower As OpcFilterOperand,
upper As OpcFilterOperand) As OpcContentFilterElementParameters
| Name | Type | Description |
|---|---|---|
lower | OpcFilterOperand | The operand of the lower bound. |
upper | OpcFilterOperand | The operand of the upper bound. |
Returns
An OpcContentFilterElement using the operator Between whose operands are this operand and both bounds.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The lower or upper is a null reference ( |
Cast
| Overload | Description |
|---|---|
| Cast( | Creates an element which converts this operand to the data type identified by the right value. |
| Cast( | Creates an element which converts this operand to the data type identified by the right operand. |
Cast(object)
Creates an element which converts this operand to the data type identified by the right value.
public OpcContentFilterElement Cast(object right)Public Function Cast(right As Object) As OpcContentFilterElementParameters
| Name | Type | Description |
|---|---|---|
right | Object | The value identifying the data type, which is used as an Opc |
Returns
An OpcContentFilterElement using the operator Cast.
Cast(OpcFilterOperand)
Creates an element which converts this operand to the data type identified by the right operand.
public OpcContentFilterElement Cast(OpcFilterOperand right)Public Function Cast(right As OpcFilterOperand) As OpcContentFilterElementParameters
| Name | Type | Description |
|---|---|---|
right | OpcFilterOperand | The operand identifying the data type. |
Returns
An OpcContentFilterElement using the operator Cast.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The right is a null reference ( |
Equals
| Overload | Description |
|---|---|
| Equals( | Determines whether the specified other is equal to this OpcFilterOperand. |
| Equals( | Determines whether the specified other is equal to this OpcFilterOperand. |
Equals(object)
Determines whether the specified other is equal to this OpcFilterOperand.
public override bool Equals(object other)Public Overrides Function Equals(other As Object) As BooleanParameters
| Name | Type | Description |
|---|---|---|
other | Object | The OpcFilterOperand to compare to the current OpcFilterOperand. |
Returns
The value true if the specified OpcFilterOperand is equal to the current OpcFilterOperand; otherwise the value false.
Overrides
Equals(OpcFilterOperand)
Determines whether the specified other is equal to this OpcFilterOperand.
public bool Equals(OpcFilterOperand other)Public Function Equals(other As OpcFilterOperand) As BooleanParameters
| Name | Type | Description |
|---|---|---|
other | OpcFilterOperand | The OpcFilterOperand to compare to the current OpcFilterOperand. |
Returns
The value true if the specified OpcFilterOperand is equal to the current OpcFilterOperand; otherwise the value false.
EqualsTo
| Overload | Description |
|---|---|
| EqualsTo( | Creates an element which determines whether this operand is equal to the right value. |
| EqualsTo( | Creates an element which determines whether this operand is equal to the right operand. |
EqualsTo(object)
Creates an element which determines whether this operand is equal to the right value.
public OpcContentFilterElement EqualsTo(object right)Public Function EqualsTo(right As Object) As OpcContentFilterElementParameters
| Name | Type | Description |
|---|---|---|
right | Object | The value to compare with, which is used as an Opc |
Returns
An OpcContentFilterElement using the operator EqualsTo.
EqualsTo(OpcFilterOperand)
Creates an element which determines whether this operand is equal to the right operand.
public OpcContentFilterElement EqualsTo(OpcFilterOperand right)Public Function EqualsTo(right As OpcFilterOperand) As OpcContentFilterElementParameters
| Name | Type | Description |
|---|---|---|
right | OpcFilterOperand | The operand to compare with. |
Returns
An OpcContentFilterElement using the operator EqualsTo.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The right is a null reference ( |
GetHashCode
Retrieves a hash code for this OpcFilterOperand.
public override int GetHashCode()Public Overrides Function GetHashCode() As IntegerReturns
An int that contains the hash code for the OpcFilterOperand.
Overrides
GreaterThan
| Overload | Description |
|---|---|
| GreaterThan( | Creates an element which determines whether this operand is greater than the right value. |
| GreaterThan( | Creates an element which determines whether this operand is greater than the right operand. |
GreaterThan(object)
Creates an element which determines whether this operand is greater than the right value.
public OpcContentFilterElement GreaterThan(object right)Public Function GreaterThan(right As Object) As OpcContentFilterElementParameters
| Name | Type | Description |
|---|---|---|
right | Object | The value to compare with, which is used as an Opc |
Returns
An OpcContentFilterElement using the operator GreaterThan.
GreaterThan(OpcFilterOperand)
Creates an element which determines whether this operand is greater than the right operand.
public OpcContentFilterElement GreaterThan(OpcFilterOperand right)Public Function GreaterThan(
right As OpcFilterOperand) As OpcContentFilterElementParameters
| Name | Type | Description |
|---|---|---|
right | OpcFilterOperand | The operand to compare with. |
Returns
An OpcContentFilterElement using the operator GreaterThan.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The right is a null reference ( |
GreaterThanOrEqualsTo
| Overload | Description |
|---|---|
| Greater | Creates an element which determines whether this operand is greater than or equal to the right value. |
| Greater | Creates an element which determines whether this operand is greater than or equal to the right operand. |
GreaterThanOrEqualsTo(object)
Creates an element which determines whether this operand is greater than or equal to the right value.
public OpcContentFilterElement GreaterThanOrEqualsTo(object right)Public Function GreaterThanOrEqualsTo(
right As Object) As OpcContentFilterElementParameters
| Name | Type | Description |
|---|---|---|
right | Object | The value to compare with, which is used as an Opc |
Returns
An OpcContentFilterElement using the operator GreaterThanOrEqualsTo.
GreaterThanOrEqualsTo(OpcFilterOperand)
Creates an element which determines whether this operand is greater than or equal to the right operand.
public OpcContentFilterElement GreaterThanOrEqualsTo(OpcFilterOperand right)Public Function GreaterThanOrEqualsTo(
right As OpcFilterOperand) As OpcContentFilterElementParameters
| Name | Type | Description |
|---|---|---|
right | OpcFilterOperand | The operand to compare with. |
Returns
An OpcContentFilterElement using the operator GreaterThanOrEqualsTo.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The right is a null reference ( |
InList
Creates an element which determines whether this operand is equal to the item or one of the items specified.
public OpcContentFilterElement InList(
OpcFilterOperand item,
params OpcFilterOperand[] items)Public Function InList(
item As OpcFilterOperand,
ParamArray items As OpcFilterOperand()) As OpcContentFilterElementParameters
| Name | Type | Description |
|---|---|---|
item | OpcFilterOperand | The first operand to compare with. |
items | params OpcFilterOperand[] | The further operands to compare with. |
Returns
An OpcContentFilterElement using the operator InList.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The item or items is a null reference ( |
InView
Creates an element which determines whether the node the filter is applied to is contained in the view identified by this operand.
public OpcContentFilterElement InView()Public Function InView() As OpcContentFilterElementReturns
An OpcContentFilterElement using the operator InView.
IsNull
Creates an element which determines whether this operand is a null value.
public OpcContentFilterElement IsNull()Public Function IsNull() As OpcContentFilterElementReturns
An OpcContentFilterElement using the operator IsNull.
LessThan
| Overload | Description |
|---|---|
| LessThan( | Creates an element which determines whether this operand is less than the right value. |
| LessThan( | Creates an element which determines whether this operand is less than the right operand. |
LessThan(object)
Creates an element which determines whether this operand is less than the right value.
public OpcContentFilterElement LessThan(object right)Public Function LessThan(right As Object) As OpcContentFilterElementParameters
| Name | Type | Description |
|---|---|---|
right | Object | The value to compare with, which is used as an Opc |
Returns
An OpcContentFilterElement using the operator LessThan.
LessThan(OpcFilterOperand)
Creates an element which determines whether this operand is less than the right operand.
public OpcContentFilterElement LessThan(OpcFilterOperand right)Public Function LessThan(right As OpcFilterOperand) As OpcContentFilterElementParameters
| Name | Type | Description |
|---|---|---|
right | OpcFilterOperand | The operand to compare with. |
Returns
An OpcContentFilterElement using the operator LessThan.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The right is a null reference ( |
LessThanOrEqualsTo
| Overload | Description |
|---|---|
| Less | Creates an element which determines whether this operand is less than or equal to the right value. |
| Less | Creates an element which determines whether this operand is less than or equal to the right operand. |
LessThanOrEqualsTo(object)
Creates an element which determines whether this operand is less than or equal to the right value.
public OpcContentFilterElement LessThanOrEqualsTo(object right)Public Function LessThanOrEqualsTo(right As Object) As OpcContentFilterElementParameters
| Name | Type | Description |
|---|---|---|
right | Object | The value to compare with, which is used as an Opc |
Returns
An OpcContentFilterElement using the operator LessThanOrEqualsTo.
LessThanOrEqualsTo(OpcFilterOperand)
Creates an element which determines whether this operand is less than or equal to the right operand.
public OpcContentFilterElement LessThanOrEqualsTo(OpcFilterOperand right)Public Function LessThanOrEqualsTo(
right As OpcFilterOperand) As OpcContentFilterElementParameters
| Name | Type | Description |
|---|---|---|
right | OpcFilterOperand | The operand to compare with. |
Returns
An OpcContentFilterElement using the operator LessThanOrEqualsTo.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The right is a null reference ( |
Like
| Overload | Description |
|---|---|
| Like( | Creates an element which determines whether this operand matches the pattern of the right value. |
| Like( | Creates an element which determines whether this operand matches the pattern of the right operand. |
Like(object)
Creates an element which determines whether this operand matches the pattern of the right value.
public OpcContentFilterElement Like(object right)Public Function [Like](right As Object) As OpcContentFilterElementParameters
| Name | Type | Description |
|---|---|---|
right | Object | The value providing the pattern, which is used as an Opc |
Returns
An OpcContentFilterElement using the operator Like.
Like(OpcFilterOperand)
Creates an element which determines whether this operand matches the pattern of the right operand.
public OpcContentFilterElement Like(OpcFilterOperand right)Public Function [Like](right As OpcFilterOperand) As OpcContentFilterElementParameters
| Name | Type | Description |
|---|---|---|
right | OpcFilterOperand | The operand providing the pattern. |
Returns
An OpcContentFilterElement using the operator Like.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The right is a null reference ( |
Not
Creates an element which determines whether this operand, a Boolean value, is false.
public OpcContentFilterElement Not()Public Function [Not]() As OpcContentFilterElementReturns
An OpcContentFilterElement using the operator Not.
OfType
| Overload | Description |
|---|---|
| OfType( | Creates an element which determines whether the node the filter is applied to is of the type identified by the typeId specified. |
| OfType() | Creates an element which determines whether the node the filter is applied to is of the type identified by this operand. |
OfType(OpcNodeId)
Creates an element which determines whether the node the filter is applied to is of the type identified by the typeId specified.
public static OpcContentFilterElement OfType(OpcNodeId typeId)Public Shared Function OfType(typeId As OpcNodeId) As OpcContentFilterElementParameters
| Name | Type | Description |
|---|---|---|
typeId | OpcNodeId | The identifier of the type. |
Returns
An OpcContentFilterElement using the operator OfType.
OfType()
Creates an element which determines whether the node the filter is applied to is of the type identified by this operand.
public OpcContentFilterElement OfType()Public Function OfType() As OpcContentFilterElementReturns
An OpcContentFilterElement using the operator OfType.
ToString
Returns a string that represents the operand.
public override string ToString()Public Overrides Function ToString() As StringReturns
The string representation of the operand provided by the OPC UA stack.
Overrides
Operators
Equality
| Overload | Description |
|---|---|
| operator ==( | Creates an element which determines whether the left operand is equal to the right value. |
| operator ==( | Creates an element which determines whether the left operand is equal to the right operand. |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| Argument | The left is a null reference ( |
operator ==(OpcFilterOperand, object)
Creates an element which determines whether the left operand is equal to the right value.
public static OpcContentFilterElement operator ==(
OpcFilterOperand left,
object right)Public Shared Operator =(
left As OpcFilterOperand,
right As Object) As OpcContentFilterElementParameters
| Name | Type | Description |
|---|---|---|
left | OpcFilterOperand | The operand to compare. |
right | Object | The value to compare with, which is used as an Opc |
Returns
An OpcContentFilterElement using the operator EqualsTo.
Remarks
The operator does not compare the operands; use Equals to compare them.
operator ==(OpcFilterOperand, OpcFilterOperand)
Creates an element which determines whether the left operand is equal to the right operand.
public static OpcContentFilterElement operator ==(
OpcFilterOperand left,
OpcFilterOperand right)Public Shared Operator =(
left As OpcFilterOperand,
right As OpcFilterOperand) As OpcContentFilterElementParameters
| Name | Type | Description |
|---|---|---|
left | OpcFilterOperand | The operand to compare. |
right | OpcFilterOperand | The operand to compare with. |
Returns
An OpcContentFilterElement using the operator EqualsTo.
Remarks
The operator does not compare the operands; use Equals to compare them.
GreaterThan
| Overload | Description |
|---|---|
| operator >( | Creates an element which determines whether the left operand is greater than the right value. |
| operator >( | Creates an element which determines whether the left operand is greater than the right operand. |
operator >(OpcFilterOperand, object)
Creates an element which determines whether the left operand is greater than the right value.
public static OpcContentFilterElement operator >(
OpcFilterOperand left,
object right)Public Shared Operator >(
left As OpcFilterOperand,
right As Object) As OpcContentFilterElementParameters
| Name | Type | Description |
|---|---|---|
left | OpcFilterOperand | The operand to compare. |
right | Object | The value to compare with, which is used as an Opc |
Returns
An OpcContentFilterElement using the operator GreaterThan.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The left is a null reference ( |
operator >(OpcFilterOperand, OpcFilterOperand)
Creates an element which determines whether the left operand is greater than the right operand.
public static OpcContentFilterElement operator >(
OpcFilterOperand left,
OpcFilterOperand right)Public Shared Operator >(
left As OpcFilterOperand,
right As OpcFilterOperand) As OpcContentFilterElementParameters
| Name | Type | Description |
|---|---|---|
left | OpcFilterOperand | The operand to compare. |
right | OpcFilterOperand | The operand to compare with. |
Returns
An OpcContentFilterElement using the operator GreaterThan.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The left or right is a null reference ( |
GreaterThanOrEqual
| Overload | Description |
|---|---|
| operator >=( | Creates an element which determines whether the left operand is greater than or equal to the right value. |
| operator >=( | Creates an element which determines whether the left operand is greater than or equal to the right operand. |
operator >=(OpcFilterOperand, object)
Creates an element which determines whether the left operand is greater than or equal to the right value.
public static OpcContentFilterElement operator >=(
OpcFilterOperand left,
object right)Public Shared Operator >=(
left As OpcFilterOperand,
right As Object) As OpcContentFilterElementParameters
| Name | Type | Description |
|---|---|---|
left | OpcFilterOperand | The operand to compare. |
right | Object | The value to compare with, which is used as an Opc |
Returns
An OpcContentFilterElement using the operator GreaterThanOrEqualsTo.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The left is a null reference ( |
operator >=(OpcFilterOperand, OpcFilterOperand)
Creates an element which determines whether the left operand is greater than or equal to the right operand.
public static OpcContentFilterElement operator >=(
OpcFilterOperand left,
OpcFilterOperand right)Public Shared Operator >=(
left As OpcFilterOperand,
right As OpcFilterOperand) As OpcContentFilterElementParameters
| Name | Type | Description |
|---|---|---|
left | OpcFilterOperand | The operand to compare. |
right | OpcFilterOperand | The operand to compare with. |
Returns
An OpcContentFilterElement using the operator GreaterThanOrEqualsTo.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The left or right is a null reference ( |
Inequality
| Overload | Description |
|---|---|
| operator !=( | Not supported. |
| operator !=( | Not supported. |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| Not | Always, because the operator is not supported. An element which determines whether the operands differ can be built from the operators < and > combined using the operator |. |
operator !=(OpcFilterOperand, object)
Not supported.
public static OpcContentFilterElement operator !=(
OpcFilterOperand left,
object right)Public Shared Operator <>(
left As OpcFilterOperand,
right As Object) As OpcContentFilterElementParameters
| Name | Type | Description |
|---|---|---|
left | OpcFilterOperand | The operand to compare. |
right | Object | The value to compare with. |
Returns
No value, because the operator always throws an exception.
operator !=(OpcFilterOperand, OpcFilterOperand)
Not supported.
public static OpcContentFilterElement operator !=(
OpcFilterOperand left,
OpcFilterOperand right)Public Shared Operator <>(
left As OpcFilterOperand,
right As OpcFilterOperand) As OpcContentFilterElementParameters
| Name | Type | Description |
|---|---|---|
left | OpcFilterOperand | The operand to compare. |
right | OpcFilterOperand | The operand to compare with. |
Returns
No value, because the operator always throws an exception.
LessThan
| Overload | Description |
|---|---|
| operator < | Creates an element which determines whether the left operand is less than the right value. |
| operator < | Creates an element which determines whether the left operand is less than the right operand. |
operator <(OpcFilterOperand, object)
Creates an element which determines whether the left operand is less than the right value.
public static OpcContentFilterElement operator <(
OpcFilterOperand left,
object right)Public Shared Operator <(
left As OpcFilterOperand,
right As Object) As OpcContentFilterElementParameters
| Name | Type | Description |
|---|---|---|
left | OpcFilterOperand | The operand to compare. |
right | Object | The value to compare with, which is used as an Opc |
Returns
An OpcContentFilterElement using the operator LessThan.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The left is a null reference ( |
operator <(OpcFilterOperand, OpcFilterOperand)
Creates an element which determines whether the left operand is less than the right operand.
public static OpcContentFilterElement operator <(
OpcFilterOperand left,
OpcFilterOperand right)Public Shared Operator <(
left As OpcFilterOperand,
right As OpcFilterOperand) As OpcContentFilterElementParameters
| Name | Type | Description |
|---|---|---|
left | OpcFilterOperand | The operand to compare. |
right | OpcFilterOperand | The operand to compare with. |
Returns
An OpcContentFilterElement using the operator LessThan.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The left or right is a null reference ( |
LessThanOrEqual
| Overload | Description |
|---|---|
| operator < | Creates an element which determines whether the left operand is less than or equal to the right value. |
| operator < | Creates an element which determines whether the left operand is less than or equal to the right operand. |
operator <=(OpcFilterOperand, object)
Creates an element which determines whether the left operand is less than or equal to the right value.
public static OpcContentFilterElement operator <=(
OpcFilterOperand left,
object right)Public Shared Operator <=(
left As OpcFilterOperand,
right As Object) As OpcContentFilterElementParameters
| Name | Type | Description |
|---|---|---|
left | OpcFilterOperand | The operand to compare. |
right | Object | The value to compare with, which is used as an Opc |
Returns
An OpcContentFilterElement using the operator LessThanOrEqualsTo.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The left is a null reference ( |
operator <=(OpcFilterOperand, OpcFilterOperand)
Creates an element which determines whether the left operand is less than or equal to the right operand.
public static OpcContentFilterElement operator <=(
OpcFilterOperand left,
OpcFilterOperand right)Public Shared Operator <=(
left As OpcFilterOperand,
right As OpcFilterOperand) As OpcContentFilterElementParameters
| Name | Type | Description |
|---|---|---|
left | OpcFilterOperand | The operand to compare. |
right | OpcFilterOperand | The operand to compare with. |
Returns
An OpcContentFilterElement using the operator LessThanOrEqualsTo.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The left or right is a null reference ( |

