# OpcNodeAttribute&lt;T&gt; Members

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

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcNodeAttribute&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 [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

### OpcNodeAttribute

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

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

#### OpcNodeAttribute(OpcNodeId, OpcAttribute)

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

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

```csharp
public OpcNodeAttribute(OpcNodeId nodeId, OpcAttribute attribute)
```

</div>

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

```vbnet
Public Sub New(nodeId As OpcNodeId, attribute As OpcAttribute)
```

</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 `attribute` value is to be represented. |
| `attribute` | [OpcAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/) | The [OpcAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/) value indentifying the kind of attribute the new [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) relates to. |

#### OpcNodeAttribute(OpcNodeId, OpcAttribute, T)

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

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

```csharp
public OpcNodeAttribute(OpcNodeId nodeId, OpcAttribute attribute, T value)
```

</div>

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

```vbnet
Public Sub New(nodeId As OpcNodeId, attribute As OpcAttribute, 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 `attribute` value is to be represented. |
| `attribute` | [OpcAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/) | The [OpcAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/) value indentifying the kind of attribute the new [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) relates to. |
| `value` | T | The value to represent. |

#### OpcNodeAttribute(OpcNodeId, OpcAttribute, T, DateTime)

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

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

```csharp
public OpcNodeAttribute(
    OpcNodeId nodeId,
    OpcAttribute attribute,
    T value,
    DateTime sourceTimestamp)
```

</div>

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

```vbnet
Public Sub New(
    nodeId As OpcNodeId,
    attribute As OpcAttribute,
    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 `attribute` value is to be represented. |
| `attribute` | [OpcAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/) | The [OpcAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/) value indentifying the kind of attribute the new [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) relates to. |
| `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`. |

#### OpcNodeAttribute(OpcNodeId, OpcAttribute, T, DateTime, OpcStatus)

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

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

```csharp
public OpcNodeAttribute(
    OpcNodeId nodeId,
    OpcAttribute attribute,
    T value,
    DateTime sourceTimestamp,
    OpcStatus status)
```

</div>

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

```vbnet
Public Sub New(
    nodeId As OpcNodeId,
    attribute As OpcAttribute,
    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 `attribute` value is to be represented. |
| `attribute` | [OpcAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/) | The [OpcAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/) value indentifying the kind of attribute the new [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) relates to. |
| `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`. |

#### OpcNodeAttribute(OpcNodeId, OpcAttribute, T, DateTime, OpcStatusCode)

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

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

```csharp
public OpcNodeAttribute(
    OpcNodeId nodeId,
    OpcAttribute attribute,
    T value,
    DateTime sourceTimestamp,
    OpcStatusCode statusCode)
```

</div>

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

```vbnet
<CLSCompliant(False)>
Public Sub New(
    nodeId As OpcNodeId,
    attribute As OpcAttribute,
    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 `attribute` value is to be represented. |
| `attribute` | [OpcAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/) | The [OpcAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/) value indentifying the kind of attribute the new [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) relates to. |
| `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`. |

#### OpcNodeAttribute(OpcNodeId, OpcAttribute, T, DateTime, DateTime)

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

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

```csharp
public OpcNodeAttribute(
    OpcNodeId nodeId,
    OpcAttribute attribute,
    T value,
    DateTime sourceTimestamp,
    DateTime serverTimestamp)
```

</div>

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

```vbnet
Public Sub New(
    nodeId As OpcNodeId,
    attribute As OpcAttribute,
    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 `attribute` value is to be represented. |
| `attribute` | [OpcAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/) | The [OpcAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/) value indentifying the kind of attribute the new [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) relates to. |
| `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`. |

#### OpcNodeAttribute(OpcNodeId, OpcAttribute, T, DateTime, DateTime, OpcStatus)

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

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

```csharp
public OpcNodeAttribute(
    OpcNodeId nodeId,
    OpcAttribute attribute,
    T value,
    DateTime sourceTimestamp,
    DateTime serverTimestamp,
    OpcStatus status)
```

</div>

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

```vbnet
Public Sub New(
    nodeId As OpcNodeId,
    attribute As OpcAttribute,
    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 `attribute` value is to be represented. |
| `attribute` | [OpcAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/) | The [OpcAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/) value indentifying the kind of attribute the new [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) relates to. |
| `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`. |

#### OpcNodeAttribute(OpcNodeId, OpcAttribute, T, DateTime, DateTime, OpcStatusCode)

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

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

```csharp
public OpcNodeAttribute(
    OpcNodeId nodeId,
    OpcAttribute attribute,
    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,
    attribute As OpcAttribute,
    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 `attribute` value is to be represented. |
| `attribute` | [OpcAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/) | The [OpcAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/) value indentifying the kind of attribute the new [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) relates to. |
| `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`. |

## Properties

### Attribute

Gets a value indicating which attribute of a node is represented.

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

```csharp
public OpcAttribute Attribute { get; }
```

</div>

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

```vbnet
Public ReadOnly Property Attribute As OpcAttribute
```

</div>

**Property value**

[OpcAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/)

One of the members defined by the [OpcAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/) enumeration.

**Implements**

[Attribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcnodeattribute/members#attribute)

### NodeId

Gets the node identifier of the node described.

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

```csharp
public OpcNodeId NodeId { get; }
```

</div>

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

```vbnet
Public ReadOnly Property NodeId As OpcNodeId
```

</div>

**Property value**

[OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/)

An instance of the [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) class identifying the node described.

**Implements**

[NodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcnodedescriptor/members#nodeid)

## Methods

### CompareTo

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

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

#### CompareTo(object)

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

Compares the current [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-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 [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) to compare with this [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-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.opcvalue-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 [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-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 [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) to compare with this [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-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.opcvalue-1/members#compareto-opc-uafx-opcvalue)

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

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

Compares the current [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-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 [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) to compare with this [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-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.opcvalue-1/members#compareto-opc-uafx-opcvalue-of-t0)

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

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

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

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

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

</div>

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

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

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `other` | [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) | The [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) to compare with this [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-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(OpcNodeAttribute&lt;T&gt;)](https://learn.microsoft.com/dotnet/api/system.icomparable-1.compareto)

### Equals

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

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

#### Equals(object)

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

Determines whether the specified `other` is equal to this [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-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 [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) to compare to the current [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/). |

**Returns**

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

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

**Overrides**

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

#### Equals(OpcValue)

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

Determines whether the specified `other` is equal to this [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-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 [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) to compare to the current [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/). |

**Returns**

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

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

**Overrides**

[Equals(OpcValue)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue-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 [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-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 [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) to compare to the current [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/). |

**Returns**

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

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

**Overrides**

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

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

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

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

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

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

</div>

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

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

</div>

**Parameters**

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

**Returns**

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

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

**Implements**

[Equals(OpcNodeAttribute&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 [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-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 [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/).

**Overrides**

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

### ToString

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

Converts the value of this instance to its equivalent string representation using the specified format and culture-specific format information.

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

```csharp
public override string ToString(string format, IFormatProvider formatProvider)
```

</div>

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

```vbnet
Public Overrides Function ToString(
    format As String,
    formatProvider As IFormatProvider) As String
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `format` | [String](https://learn.microsoft.com/dotnet/api/system.string) | A standard or custom format string. |
| `formatProvider` | [IFormatProvider](https://learn.microsoft.com/dotnet/api/system.iformatprovider) | An object that supplies culture-specific formatting information. |

**Returns**

[String](https://learn.microsoft.com/dotnet/api/system.string)

The string representation of the value of this instance as specified by format and provider.

**Exceptions**

| Exception | Condition |
|---|---|
| [FormatException](https://learn.microsoft.com/dotnet/api/system.formatexception) | The `format` is invalid or not supported. |

**Overrides**

[ToString](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue/members#tostring-system-string-system-iformatprovider)

## Operators

### Equality

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

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

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

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

</div>

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

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

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `left` | [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) | The first [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) to compare. |
| `right` | [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) | The second [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-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 [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-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(OpcNodeAttribute<T> value)
```

</div>

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

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

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) | A [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-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 [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) object is greater than the second specified [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) object.

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

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

</div>

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

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

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `left` | [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) | The first [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) object. |
| `right` | [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) | The second [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-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 [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) object is greater than or equal to the second specified [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) object.

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

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

</div>

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

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

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `left` | [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) | The first [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) object. |
| `right` | [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) | The second [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-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 [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) are not equal.

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

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

</div>

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

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

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `left` | [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) | The first [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) to compare. |
| `right` | [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) | The second [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-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 [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) object is less than the second specified [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) object.

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

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

</div>

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

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

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `left` | [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) | The first [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) object. |
| `right` | [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) | The second [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-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 [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) object is less than or equal to the second [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) object.

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

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

</div>

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

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

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `left` | [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) | The first [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) object. |
| `right` | [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-1/) | The second [OpcNodeAttribute&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeattribute-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). |
