# OpcNodeValue&lt;T&gt; Members

> Reference: Stores the generic value of the Value attribute associated with a specific node optionally associated with status and timestamp information.

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcNodeValue&lt;T&gt;</a></dd>
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx">Opc.UaFx</a></dd>
<dt>Assembly</dt>
<dd>Opc.UaFx.Advanced.dll</dd>
<dt>Package</dt>
<dd>Opc.UaFx.Advanced v2.59.0</dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Inherits members from [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/members), [OpcValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue-1/members), [OpcValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue/members).

## Constructors

### OpcNodeValue

<span class="api-meta">8 overloads</span>

| Overload | Description |
|---|---|
| [OpcNodeValue(OpcNodeId)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/members#opcnodevalue-opc-uafx-opcnodeid) | Initializes a new instance of the [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) class with the `nodeId` of the node the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute represented belongs to. |
| [OpcNodeValue(OpcNodeId, T)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/members#opcnodevalue-opc-uafx-opcnodeid-t0) | Initializes a new instance of the [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) class with the `nodeId` of the node the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute and its `value` specified belongs to. |
| [OpcNodeValue(OpcNodeId, T, DateTime)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/members#opcnodevalue-opc-uafx-opcnodeid-t0-system-datetime) | Initializes a new instance of the [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) class with the `nodeId` of the node the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute and its `value` and the `sourceTimestamp` of the `value` specified belongs to. |
| [OpcNodeValue(OpcNodeId, T, DateTime, OpcStatus)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/members#opcnodevalue-opc-uafx-opcnodeid-t0-system-datetime-opc-uafx-opcstatus) | Initializes a new instance of the [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) class with the `nodeId` of the node the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute and its `value`, `sourceTimestamp` and `status` of the `value` specified belongs to. |
| [OpcNodeValue(OpcNodeId, T, DateTime, OpcStatusCode)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/members#opcnodevalue-opc-uafx-opcnodeid-t0-system-datetime-opc-uafx-opcstatuscode) | Initializes a new instance of the [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) class with the `nodeId` of the node the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute and its `value`, `sourceTimestamp` and `statusCode` of the `value` specified belongs to. |
| [OpcNodeValue(OpcNodeId, T, DateTime, DateTime)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/members#opcnodevalue-opc-uafx-opcnodeid-t0-system-datetime-system-datetime) | Initializes a new instance of the [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) class with the `nodeId` of the node the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute and its `value`, `sourceTimestamp` and `serverTimestamp` of the `value` specified belongs to. |
| [OpcNodeValue(OpcNodeId, T, DateTime, DateTime, OpcStatus)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/members#opcnodevalue-opc-uafx-opcnodeid-t0-system-datetime-system-datetime-opc-uafx-opcstatus) | Initializes a new instance of the [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) class with the `nodeId` of the node the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute and its `value`, `sourceTimestamp`, `serverTimestamp` and `status` of the `value` specified belongs to. |
| [OpcNodeValue(OpcNodeId, T, DateTime, DateTime, OpcStatusCode)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/members#opcnodevalue-opc-uafx-opcnodeid-t0-system-datetime-system-datetime-opc-uafx-opcstatuscode) | Initializes a new instance of the [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) class with the `nodeId` of the node the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute and its `value`, `sourceTimestamp`, `serverTimestamp` and `statusCode` of the `value` specified belongs to. |

**Exceptions (all overloads)**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `nodeId` is a null reference (Nothing in Visual Basic). |

#### OpcNodeValue(OpcNodeId)

Initializes a new instance of the [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) class with the `nodeId` of the node the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute represented belongs to.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcNodeValue(OpcNodeId nodeId)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Sub New(nodeId As OpcNodeId)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) | The [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) of the node the value of its [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute is to be represented. |

#### OpcNodeValue(OpcNodeId, T)

Initializes a new instance of the [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) class with the `nodeId` of the node the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute and its `value` specified belongs to.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcNodeValue(OpcNodeId nodeId, T value)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Sub New(nodeId As OpcNodeId, value As T)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) | The [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) of the node its [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute value is to be represented. |
| `value` | T | The value to represent. |

#### OpcNodeValue(OpcNodeId, T, DateTime)

Initializes a new instance of the [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) class with the `nodeId` of the node the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute and its `value` and the `sourceTimestamp` of the `value` specified belongs to.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcNodeValue(OpcNodeId nodeId, T value, DateTime sourceTimestamp)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Sub New(nodeId As OpcNodeId, value As T, sourceTimestamp As Date)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) | The [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) of the node its [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute value is to be represented. |
| `value` | T | The value to represent. |
| `sourceTimestamp` | [DateTime](https://learn.microsoft.com/dotnet/api/system.datetime) | The timestamp at which the source produced the `value`. |

#### OpcNodeValue(OpcNodeId, T, DateTime, OpcStatus)

Initializes a new instance of the [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) class with the `nodeId` of the node the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute and its `value`, `sourceTimestamp` and `status` of the `value` specified belongs to.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcNodeValue(
    OpcNodeId nodeId,
    T value,
    DateTime sourceTimestamp,
    OpcStatus status)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Sub New(
    nodeId As OpcNodeId,
    value As T,
    sourceTimestamp As Date,
    status As OpcStatus)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) | The [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) of the node its [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute value is to be represented. |
| `value` | T | The value to represent. |
| `sourceTimestamp` | [DateTime](https://learn.microsoft.com/dotnet/api/system.datetime) | The timestamp at which the source produced the value. |
| `status` | [OpcStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatus/) | The status information associated with the `value`. |

#### OpcNodeValue(OpcNodeId, T, DateTime, OpcStatusCode)

Initializes a new instance of the [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) class with the `nodeId` of the node the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute and its `value`, `sourceTimestamp` and `statusCode` of the `value` specified belongs to.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcNodeValue(
    OpcNodeId nodeId,
    T value,
    DateTime sourceTimestamp,
    OpcStatusCode statusCode)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
<CLSCompliant(False)>
Public Sub New(
    nodeId As OpcNodeId,
    value As T,
    sourceTimestamp As Date,
    statusCode As OpcStatusCode)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) | The [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) of the node its [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute value is to be represented. |
| `value` | T | The value to represent. |
| `sourceTimestamp` | [DateTime](https://learn.microsoft.com/dotnet/api/system.datetime) | The timestamp at which the source produced the value. |
| `statusCode` | [OpcStatusCode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/) | One of the [OpcStatusCode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/) members which defines the status information associated with the `value`. |

#### OpcNodeValue(OpcNodeId, T, DateTime, DateTime)

Initializes a new instance of the [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) class with the `nodeId` of the node the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute and its `value`, `sourceTimestamp` and `serverTimestamp` of the `value` specified belongs to.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcNodeValue(
    OpcNodeId nodeId,
    T value,
    DateTime sourceTimestamp,
    DateTime serverTimestamp)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Sub New(
    nodeId As OpcNodeId,
    value As T,
    sourceTimestamp As Date,
    serverTimestamp As Date)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) | The [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) of the node its [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute value is to be represented. |
| `value` | T | The value to represent. |
| `sourceTimestamp` | [DateTime](https://learn.microsoft.com/dotnet/api/system.datetime) | The timestamp at which the source produced the `value`. |
| `serverTimestamp` | [DateTime](https://learn.microsoft.com/dotnet/api/system.datetime) | The timestamp at which the server recorded the `value`. |

#### OpcNodeValue(OpcNodeId, T, DateTime, DateTime, OpcStatus)

Initializes a new instance of the [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) class with the `nodeId` of the node the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute and its `value`, `sourceTimestamp`, `serverTimestamp` and `status` of the `value` specified belongs to.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcNodeValue(
    OpcNodeId nodeId,
    T value,
    DateTime sourceTimestamp,
    DateTime serverTimestamp,
    OpcStatus status)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Sub New(
    nodeId As OpcNodeId,
    value As T,
    sourceTimestamp As Date,
    serverTimestamp As Date,
    status As OpcStatus)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) | The [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) of the node its [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute value is to be represented. |
| `value` | T | The value to represent. |
| `sourceTimestamp` | [DateTime](https://learn.microsoft.com/dotnet/api/system.datetime) | The timestamp at which the source produced the `value`. |
| `serverTimestamp` | [DateTime](https://learn.microsoft.com/dotnet/api/system.datetime) | The timestamp at which the server recorded the `value`. |
| `status` | [OpcStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatus/) | The status information associated with the `value`. |

#### OpcNodeValue(OpcNodeId, T, DateTime, DateTime, OpcStatusCode)

Initializes a new instance of the [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) class with the `nodeId` of the node the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute and its `value`, `sourceTimestamp`, `serverTimestamp` and `statusCode` of the `value` specified belongs to.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcNodeValue(
    OpcNodeId nodeId,
    T value,
    DateTime sourceTimestamp,
    DateTime serverTimestamp,
    OpcStatusCode statusCode)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
<CLSCompliant(False)>
Public Sub New(
    nodeId As OpcNodeId,
    value As T,
    sourceTimestamp As Date,
    serverTimestamp As Date,
    statusCode As OpcStatusCode)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) | The [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) of the node its [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute value is to be represented. |
| `value` | T | The value to represent. |
| `sourceTimestamp` | [DateTime](https://learn.microsoft.com/dotnet/api/system.datetime) | The timestamp at which the source produced the `value`. |
| `serverTimestamp` | [DateTime](https://learn.microsoft.com/dotnet/api/system.datetime) | The timestamp at which the server recorded the `value`. |
| `statusCode` | [OpcStatusCode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/) | One of the [OpcStatusCode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/) members which defines the status information associated with the `value`. |

## Methods

### CompareTo

<span class="api-meta">5 overloads</span>

| Overload | Description |
|---|---|
| [CompareTo(object)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/members#compareto-system-object)<span class="api-meta">override</span> | Compares the current [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) with the `other`. |
| [CompareTo(OpcValue)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/members#compareto-opc-uafx-opcvalue)<span class="api-meta">override</span> | Compares the current [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) with the `other`. |
| [CompareTo(OpcValue&lt;T&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/members#compareto-opc-uafx-opcvalue-of-t0)<span class="api-meta">override</span> | Compares the current [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) with the `other`. |
| [CompareTo(OpcNodeAttribute&lt;T&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/members#compareto-opc-uafx-opcnodeattribute-of-t0)<span class="api-meta">override</span> | Compares the current [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) with the `other`. |
| [CompareTo(OpcNodeValue&lt;T&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/members#compareto-opc-uafx-opcnodevalue-of-t0)<span class="api-meta">virtual</span> | Compares the current [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) with another [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/). |

#### CompareTo(object)

<span class="api-meta">override</span>

Compares the current [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) with the `other`.

<div class="api-signature" data-lang="csharp">

```csharp
public override int CompareTo(object other)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Overrides Function CompareTo(other As Object) As Integer
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `other` | [Object](https://learn.microsoft.com/dotnet/api/system.object) | The [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) to compare with this [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/). |

**Returns**

[Int32](https://learn.microsoft.com/dotnet/api/system.int32)

A 32-bit signed integer that indicates the relative order of the objects being compared ([CompareTo(object)](https://learn.microsoft.com/dotnet/api/system.icomparable.compareto)).

**Overrides**

[CompareTo(object)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/members#compareto-system-object)

**Implements**

[CompareTo(object)](https://learn.microsoft.com/dotnet/api/system.icomparable.compareto)

#### CompareTo(OpcValue)

<span class="api-meta">override</span>

Compares the current [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) with the `other`.

<div class="api-signature" data-lang="csharp">

```csharp
public override int CompareTo(OpcValue other)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Overrides Function CompareTo(other As OpcValue) As Integer
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `other` | [OpcValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue/) | The [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) to compare with this [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/). |

**Returns**

[Int32](https://learn.microsoft.com/dotnet/api/system.int32)

A 32-bit signed integer that indicates the relative order of the objects being compared ([CompareTo(object)](https://learn.microsoft.com/dotnet/api/system.icomparable.compareto)).

**Overrides**

[CompareTo(OpcValue)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/members#compareto-opc-uafx-opcvalue)

#### CompareTo(OpcValue&lt;T&gt;)

<span class="api-meta">override</span>

Compares the current [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) with the `other`.

<div class="api-signature" data-lang="csharp">

```csharp
public override int CompareTo(OpcValue<T> other)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Overrides Function CompareTo(other As OpcValue(Of T)) As Integer
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `other` | [OpcValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue-1/)&lt;T&gt; | The [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) to compare with this [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/). |

**Returns**

[Int32](https://learn.microsoft.com/dotnet/api/system.int32)

A 32-bit signed integer that indicates the relative order of the objects being compared ([CompareTo(object)](https://learn.microsoft.com/dotnet/api/system.icomparable.compareto)).

**Overrides**

[CompareTo(OpcValue&lt;T&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/members#compareto-opc-uafx-opcvalue-of-t0)

#### CompareTo(OpcNodeAttribute&lt;T&gt;)

<span class="api-meta">override</span>

Compares the current [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) with the `other`.

<div class="api-signature" data-lang="csharp">

```csharp
public override int CompareTo(OpcNodeAttribute<T> other)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Overrides Function CompareTo(other As OpcNodeAttribute(Of T)) As Integer
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `other` | [OpcNodeAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/)&lt;T&gt; | The [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) to compare with this [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/). |

**Returns**

[Int32](https://learn.microsoft.com/dotnet/api/system.int32)

A 32-bit signed integer that indicates the relative order of the objects being compared ([CompareTo(object)](https://learn.microsoft.com/dotnet/api/system.icomparable.compareto)).

**Overrides**

[CompareTo(OpcNodeAttribute&lt;T&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/members#compareto-opc-uafx-opcnodeattribute-of-t0)

#### CompareTo(OpcNodeValue&lt;T&gt;)

<span class="api-meta">virtual</span>

Compares the current [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) with another [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/).

<div class="api-signature" data-lang="csharp">

```csharp
public virtual int CompareTo(OpcNodeValue<T> other)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Overridable Function CompareTo(other As OpcNodeValue(Of T)) As Integer
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `other` | [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) | The [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) to compare with this [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/). |

**Returns**

[Int32](https://learn.microsoft.com/dotnet/api/system.int32)

A 32-bit signed integer that indicates the relative order of the objects being compared ([CompareTo(T)](https://learn.microsoft.com/dotnet/api/system.icomparable-1.compareto)).

**Implements**

[CompareTo(OpcNodeValue&lt;T&gt;)](https://learn.microsoft.com/dotnet/api/system.icomparable-1.compareto)

### Equals

<span class="api-meta">5 overloads</span>

| Overload | Description |
|---|---|
| [Equals(object)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/members#equals-system-object)<span class="api-meta">override</span> | Determines whether the specified `other` is equal to this [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/). |
| [Equals(OpcValue)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/members#equals-opc-uafx-opcvalue)<span class="api-meta">override</span> | Determines whether the specified `other` is equal to this [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/). |
| [Equals(OpcValue&lt;T&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/members#equals-opc-uafx-opcvalue-of-t0)<span class="api-meta">override</span> | Determines whether the specified `other` is equal to this [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/). |
| [Equals(OpcNodeAttribute&lt;T&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/members#equals-opc-uafx-opcnodeattribute-of-t0)<span class="api-meta">override</span> | Determines whether the specified `other` is equal to this [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/). |
| [Equals(OpcNodeValue&lt;T&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/members#equals-opc-uafx-opcnodevalue-of-t0)<span class="api-meta">virtual</span> | Determines whether the specified `other` is equal to this [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/). |

#### Equals(object)

<span class="api-meta">override</span>

Determines whether the specified `other` is equal to this [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/).

<div class="api-signature" data-lang="csharp">

```csharp
public override bool Equals(object other)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Overrides Function Equals(other As Object) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `other` | [Object](https://learn.microsoft.com/dotnet/api/system.object) | The [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) to compare to the current [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/). |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if the specified [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) is equal to the current [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/); otherwise the value false.

**Overrides**

[Equals(object)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/members#equals-system-object)

#### Equals(OpcValue)

<span class="api-meta">override</span>

Determines whether the specified `other` is equal to this [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/).

<div class="api-signature" data-lang="csharp">

```csharp
public override bool Equals(OpcValue other)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Overrides Function Equals(other As OpcValue) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `other` | [OpcValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue/) | The [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) to compare to the current [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/). |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if the specified [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) is equal to the current [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/); otherwise the value false.

**Overrides**

[Equals(OpcValue)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/members#equals-opc-uafx-opcvalue)

#### Equals(OpcValue&lt;T&gt;)

<span class="api-meta">override</span>

Determines whether the specified `other` is equal to this [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/).

<div class="api-signature" data-lang="csharp">

```csharp
public override bool Equals(OpcValue<T> other)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Overrides Function Equals(other As OpcValue(Of T)) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `other` | [OpcValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue-1/)&lt;T&gt; | The [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) to compare to the current [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/). |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if the specified [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) is equal to the current [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/); otherwise the value false.

**Overrides**

[Equals(OpcValue&lt;T&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/members#equals-opc-uafx-opcvalue-of-t0)

#### Equals(OpcNodeAttribute&lt;T&gt;)

<span class="api-meta">override</span>

Determines whether the specified `other` is equal to this [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/).

<div class="api-signature" data-lang="csharp">

```csharp
public override bool Equals(OpcNodeAttribute<T> other)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Overrides Function Equals(other As OpcNodeAttribute(Of T)) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `other` | [OpcNodeAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/)&lt;T&gt; | The [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) to compare to the current [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/). |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if the specified [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) is equal to the current [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/); otherwise the value false.

**Overrides**

[Equals(OpcNodeAttribute&lt;T&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/members#equals-opc-uafx-opcnodeattribute-of-t0)

#### Equals(OpcNodeValue&lt;T&gt;)

<span class="api-meta">virtual</span>

Determines whether the specified `other` is equal to this [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/).

<div class="api-signature" data-lang="csharp">

```csharp
public virtual bool Equals(OpcNodeValue<T> other)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Overridable Function Equals(other As OpcNodeValue(Of T)) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `other` | [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) | The [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) to compare to the current [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/). |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if the specified [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) is equal to the current [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/); otherwise the value false.

**Implements**

[Equals(OpcNodeValue&lt;T&gt;)](https://learn.microsoft.com/dotnet/api/system.iequatable-1.equals)

### GetHashCode

<span class="api-meta">override</span>

Retrieves a hash code for this [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/).

<div class="api-signature" data-lang="csharp">

```csharp
public override int GetHashCode()
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Overrides Function GetHashCode() As Integer
```

</div>

**Returns**

[Int32](https://learn.microsoft.com/dotnet/api/system.int32)

An [int](https://learn.microsoft.com/dotnet/api/system.int32) that contains the hash code for the [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/).

**Overrides**

[GetHashCode()](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/members#gethashcode)

## Operators

### Equality

<span class="api-meta">static</span>

Returns a value indicating whether two instance of [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) are equal.

<div class="api-signature" data-lang="csharp">

```csharp
public static bool operator ==(OpcNodeValue<T> left, OpcNodeValue<T> right)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared Operator =(
    left As OpcNodeValue(Of T),
    right As OpcNodeValue(Of T)) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `left` | [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) | The first [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) to compare. |
| `right` | [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) | The second [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) to compare. |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if left and right are equal; otherwise the value false.

### Explicit

<span class="api-meta">static</span>

Converts a [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) to an <abbr title="OPC Foundation stack type, not documented here: Opc.Ua.DataValue">DataValue</abbr> object.

<div class="api-signature" data-lang="csharp">

```csharp
public static explicit operator DataValue(OpcNodeValue<T> value)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
<CLSCompliant(False)>
Public Shared Narrowing Operator CType(value As OpcNodeValue(Of T)) As DataValue
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) | A [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) that represents the value. |

**Returns**

<abbr title="OPC Foundation stack type, not documented here: Opc.Ua.DataValue">DataValue</abbr>

An instance of the <abbr title="OPC Foundation stack type, not documented here: Opc.Ua.DataValue">DataValue</abbr> class initialized from the `value`.

### GreaterThan

<span class="api-meta">static</span>

Determines whether the first specified [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) object is greater than the second specified [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) object.

<div class="api-signature" data-lang="csharp">

```csharp
public static bool operator >(OpcNodeValue<T> left, OpcNodeValue<T> right)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared Operator >(
    left As OpcNodeValue(Of T),
    right As OpcNodeValue(Of T)) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `left` | [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) | The first [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) object. |
| `right` | [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) | The second [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) object. |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if `left` is greater than `right`; otherwise, false.

### GreaterThanOrEqual

<span class="api-meta">static</span>

Determines whether the first specified [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) object is greater than or equal to the second specified [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) object.

<div class="api-signature" data-lang="csharp">

```csharp
public static bool operator >=(OpcNodeValue<T> left, OpcNodeValue<T> right)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared Operator >=(
    left As OpcNodeValue(Of T),
    right As OpcNodeValue(Of T)) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `left` | [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) | The first [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) object. |
| `right` | [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) | The second [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) object. |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if `left` is greater than or equal to `right`; otherwise, false.

### Inequality

<span class="api-meta">static</span>

Returns a value indicating whether two instances of [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) are not equal.

<div class="api-signature" data-lang="csharp">

```csharp
public static bool operator !=(OpcNodeValue<T> left, OpcNodeValue<T> right)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared Operator <>(
    left As OpcNodeValue(Of T),
    right As OpcNodeValue(Of T)) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `left` | [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) | The first [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) to compare. |
| `right` | [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) | The second [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) to compare. |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if left and right are not equal; otherwise the value false.

### LessThan

<span class="api-meta">static</span>

Determines whether the first specified [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) object is less than the second specified [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) object.

<div class="api-signature" data-lang="csharp">

```csharp
public static bool operator <(OpcNodeValue<T> left, OpcNodeValue<T> right)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared Operator <(
    left As OpcNodeValue(Of T),
    right As OpcNodeValue(Of T)) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `left` | [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) | The first [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) object. |
| `right` | [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) | The second [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) object. |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if `left` is less than `right`; otherwise the value false.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `left` is a null reference (Nothing in Visual Basic). |

### LessThanOrEqual

<span class="api-meta">static</span>

Determines whether the first specified [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) object is less than or equal to the second [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) object.

<div class="api-signature" data-lang="csharp">

```csharp
public static bool operator <=(OpcNodeValue<T> left, OpcNodeValue<T> right)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared Operator <=(
    left As OpcNodeValue(Of T),
    right As OpcNodeValue(Of T)) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `left` | [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) | The first [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) object. |
| `right` | [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) | The second [OpcNodeValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevalue-1/) object. |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if `left` is less than or equal to `right`; otherwise the value false.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `left` is a null reference (Nothing in Visual Basic). |
