# OpcNodeValuePair Struct

> Reference: Defines a node value pair using an IOpcNodeValue object as the node and an object as the value.

<span class="api-meta">since v2.8</span>

<dl class="api-definition">
<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>Members</dt>
<dd><a href="./members">OpcNodeValuePair Members</a></dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Defines a node value pair using an [IOpcNodeValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcnodevalue/) object as the node and an [object](https://learn.microsoft.com/dotnet/api/system.object) as the value.

## Syntax

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

```csharp
public struct OpcNodeValuePair
```

</div>

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

```vbnet
Public Structure OpcNodeValuePair
```

</div>

## Constructors

| Name | Description |
|---|---|
| [OpcNodeValuePair](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevaluepair/members#opcnodevaluepair) | Initializes a new instance of the OpcNodeValuePair structure using the specified `node` and `value`. |

## Properties

| Name | Description |
|---|---|
| [Node](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevaluepair/members#node) | Gets the [IOpcNodeValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcnodevalue/) used to identify the node. |
| [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevaluepair/members#value) | Gets the value associated with the [Node](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevaluepair/members#node). |

## Methods

| Name | Description |
|---|---|
| [Deconstruct](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevaluepair/members#deconstruct) | Deconstructs the OpcNodeValuePair into the [Node](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevaluepair/members#node) and the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevaluepair/members#value) used. |
| [ToString](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevaluepair/members#tostring)<span class="api-meta">override</span> | Returns a [string](https://learn.microsoft.com/dotnet/api/system.string) representing the [Node](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevaluepair/members#node) and [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodevaluepair/members#value) of the current OpcNodeValuePair. |

Inherits members from [ValueType](https://learn.microsoft.com/dotnet/api/system.valuetype).

## Applies to

| Package | Versions |
|---|---|
| Opc.UaFx.Advanced | v2.8–v2.59 |
