# OpcNodeAttributeServiceCommand Members

> Reference: Provides an abstract base class for node attribute orientated OPC UA services which at least require the OpcNodeId of a specific node and one of the members defined by the OpcAttribute enumeration of the node attribute to operate on.

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcNodeAttributeServiceCommand</a></dd>
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx.services">Opc.UaFx.Services</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 [OpcNodeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeservicecommand/members), [OpcServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcservicecommand/members).

## Constructors

### OpcNodeAttributeServiceCommand

<span class="api-meta">protected · 22 overloads</span>

| Overload | Description |
|---|---|
| [OpcNodeAttributeServiceCommand(byte\[\])](#opcnodeattributeservicecommand-system-byte-array)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` specified to operate on the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute. |
| [OpcNodeAttributeServiceCommand(Guid)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/members#opcnodeattributeservicecommand-system-guid)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` specified to operate on the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute. |
| [OpcNodeAttributeServiceCommand(int)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/members#opcnodeattributeservicecommand-system-int32)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` specified to operate on the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute. |
| [OpcNodeAttributeServiceCommand(uint)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/members#opcnodeattributeservicecommand-system-uint32)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` specified to operate on the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute. |
| [OpcNodeAttributeServiceCommand(string)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/members#opcnodeattributeservicecommand-system-string)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` specified to operate on the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute. |
| [OpcNodeAttributeServiceCommand(byte\[\], OpcAttribute)](#opcnodeattributeservicecommand-system-byte-array-opc-uafx-opcattribute)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` specified to operate on the `attribute` defined. |
| [OpcNodeAttributeServiceCommand(Guid, OpcAttribute)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/members#opcnodeattributeservicecommand-system-guid-opc-uafx-opcattribute)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` specified to operate on the `attribute` defined. |
| [OpcNodeAttributeServiceCommand(int, OpcAttribute)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/members#opcnodeattributeservicecommand-system-int32-opc-uafx-opcattribute)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` specified to operate on the `attribute` defined. |
| [OpcNodeAttributeServiceCommand(uint, OpcAttribute)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/members#opcnodeattributeservicecommand-system-uint32-opc-uafx-opcattribute)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` specified to operate on the `attribute` defined. |
| [OpcNodeAttributeServiceCommand(string, OpcAttribute)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/members#opcnodeattributeservicecommand-system-string-opc-uafx-opcattribute)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` specified to operate on the `attribute` defined. |
| [OpcNodeAttributeServiceCommand(byte\[\], int)](#opcnodeattributeservicecommand-system-byte-array-system-int32)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` and `namespaceIndex` specified to operate on the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute. |
| [OpcNodeAttributeServiceCommand(Guid, int)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/members#opcnodeattributeservicecommand-system-guid-system-int32)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` and `namespaceIndex` specified to operate on the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute. |
| [OpcNodeAttributeServiceCommand(int, int)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/members#opcnodeattributeservicecommand-system-int32-system-int32)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` and `namespaceIndex` specified to operate on the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute. |
| [OpcNodeAttributeServiceCommand(uint, int)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/members#opcnodeattributeservicecommand-system-uint32-system-int32)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` and `namespaceIndex` specified to operate on the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute. |
| [OpcNodeAttributeServiceCommand(string, int)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/members#opcnodeattributeservicecommand-system-string-system-int32)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` and `namespaceIndex` specified to operate on the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute. |
| [OpcNodeAttributeServiceCommand(byte\[\], int, OpcAttribute)](#opcnodeattributeservicecommand-system-byte-array-system-int32-opc-uafx-opcattribute)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` and `namespaceIndex` specified to operate on the `attribute`. |
| [OpcNodeAttributeServiceCommand(Guid, int, OpcAttribute)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/members#opcnodeattributeservicecommand-system-guid-system-int32-opc-uafx-opcattribute)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` and `namespaceIndex` specified to operate on the `attribute`. |
| [OpcNodeAttributeServiceCommand(int, int, OpcAttribute)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/members#opcnodeattributeservicecommand-system-int32-system-int32-opc-uafx-opcattribute)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` and `namespaceIndex` specified to operate on the `attribute`. |
| [OpcNodeAttributeServiceCommand(uint, int, OpcAttribute)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/members#opcnodeattributeservicecommand-system-uint32-system-int32-opc-uafx-opcattribute)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` and `namespaceIndex` specified to operate on the `attribute`. |
| [OpcNodeAttributeServiceCommand(string, int, OpcAttribute)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/members#opcnodeattributeservicecommand-system-string-system-int32-opc-uafx-opcattribute)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` and `namespaceIndex` specified to operate on the `attribute`. |
| [OpcNodeAttributeServiceCommand(OpcNodeId)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/members#opcnodeattributeservicecommand-opc-uafx-opcnodeid)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` specified to operate on the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute. |
| [OpcNodeAttributeServiceCommand(OpcNodeId, OpcAttribute)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/members#opcnodeattributeservicecommand-opc-uafx-opcnodeid-opc-uafx-opcattribute)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` specified to operate on the `attribute` defined. |

**Exceptions (all overloads)**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The command does not support empty node identifiers. |

#### OpcNodeAttributeServiceCommand(byte\[\])

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

Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` specified to operate on the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute.

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

```csharp
protected OpcNodeAttributeServiceCommand(byte[] nodeId)
```

</div>

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

```vbnet
Protected Sub New(nodeId As Byte())
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [Byte](https://learn.microsoft.com/dotnet/api/system.byte)[] | The opaque node identifier of the node on which the service, who will execute this command, will operate on its [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute. |

#### OpcNodeAttributeServiceCommand(Guid)

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

Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` specified to operate on the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute.

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

```csharp
protected OpcNodeAttributeServiceCommand(Guid nodeId)
```

</div>

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

```vbnet
Protected Sub New(nodeId As Guid)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [Guid](https://learn.microsoft.com/dotnet/api/system.guid) | The general unique identifier (= GUID) of the node on which the service, who will execute this command, will operate on its [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute. |

#### OpcNodeAttributeServiceCommand(int)

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

Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` specified to operate on the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute.

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

```csharp
protected OpcNodeAttributeServiceCommand(int nodeId)
```

</div>

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

```vbnet
Protected Sub New(nodeId As Integer)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The numeric node identifier of the node on which the service, who will execute this command, will operate on its [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute. |

#### OpcNodeAttributeServiceCommand(uint)

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

Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` specified to operate on the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute.

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

```csharp
protected OpcNodeAttributeServiceCommand(uint nodeId)
```

</div>

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

```vbnet
Protected Sub New(nodeId As UInteger)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [UInt32](https://learn.microsoft.com/dotnet/api/system.uint32) | The numeric node identifier of the node on which the service, who will execute this command, will operate on its [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute. |

#### OpcNodeAttributeServiceCommand(string)

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

Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` specified to operate on the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute.

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

```csharp
protected OpcNodeAttributeServiceCommand(string nodeId)
```

</div>

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

```vbnet
Protected Sub New(nodeId As String)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The textual node identifier of the node on which the service, who will execute this command, will operate on its [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute. |

#### OpcNodeAttributeServiceCommand(byte\[\], OpcAttribute)

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

Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` specified to operate on the `attribute` defined.

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

```csharp
protected OpcNodeAttributeServiceCommand(byte[] nodeId, OpcAttribute attribute)
```

</div>

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

```vbnet
Protected Sub New(nodeId As Byte(), attribute As OpcAttribute)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [Byte](https://learn.microsoft.com/dotnet/api/system.byte)[] | The opaque node identifier of the node on which the service, who will execute this command, will operate on its `attribute`. |
| `attribute` | [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 that defines which node attribute is to be used by the service. |

#### OpcNodeAttributeServiceCommand(Guid, OpcAttribute)

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

Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` specified to operate on the `attribute` defined.

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

```csharp
protected OpcNodeAttributeServiceCommand(Guid nodeId, OpcAttribute attribute)
```

</div>

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

```vbnet
Protected Sub New(nodeId As Guid, attribute As OpcAttribute)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [Guid](https://learn.microsoft.com/dotnet/api/system.guid) | The general unique identifier (= GUID) of the node on which the service, who will execute this command, will operate on its `attribute`. |
| `attribute` | [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 that defines which node attribute is to be used by the service. |

#### OpcNodeAttributeServiceCommand(int, OpcAttribute)

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

Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` specified to operate on the `attribute` defined.

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

```csharp
protected OpcNodeAttributeServiceCommand(int nodeId, OpcAttribute attribute)
```

</div>

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

```vbnet
Protected Sub New(nodeId As Integer, attribute As OpcAttribute)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The numeric node identifier of the node on which the service, who will execute this command, will operate on its `attribute`. |
| `attribute` | [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 that defines which node attribute is to be used by the service. |

#### OpcNodeAttributeServiceCommand(uint, OpcAttribute)

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

Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` specified to operate on the `attribute` defined.

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

```csharp
protected OpcNodeAttributeServiceCommand(uint nodeId, OpcAttribute attribute)
```

</div>

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

```vbnet
Protected Sub New(nodeId As UInteger, attribute As OpcAttribute)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [UInt32](https://learn.microsoft.com/dotnet/api/system.uint32) | The numeric node identifier of the node on which the service, who will execute this command, will operate on its `attribute`. |
| `attribute` | [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 that defines which node attribute is to be used by the service. |

#### OpcNodeAttributeServiceCommand(string, OpcAttribute)

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

Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` specified to operate on the `attribute` defined.

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

```csharp
protected OpcNodeAttributeServiceCommand(string nodeId, OpcAttribute attribute)
```

</div>

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

```vbnet
Protected Sub New(nodeId As String, attribute As OpcAttribute)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The textual node identifier of the node on which the service, who will execute this command, will operate on its `attribute`. |
| `attribute` | [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 that defines which node attribute is to be used by the service. |

#### OpcNodeAttributeServiceCommand(byte\[\], int)

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

Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` and `namespaceIndex` specified to operate on the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute.

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

```csharp
protected OpcNodeAttributeServiceCommand(byte[] nodeId, int namespaceIndex)
```

</div>

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

```vbnet
Protected Sub New(nodeId As Byte(), namespaceIndex As Integer)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [Byte](https://learn.microsoft.com/dotnet/api/system.byte)[] | The opaque node identifier of the node on which the service, who will execute this command, will operate on its [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute. |
| `namespaceIndex` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The index of the namespace within that the node with the `nodeId` specified can be located. |

#### OpcNodeAttributeServiceCommand(Guid, int)

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

Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` and `namespaceIndex` specified to operate on the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute.

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

```csharp
protected OpcNodeAttributeServiceCommand(Guid nodeId, int namespaceIndex)
```

</div>

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

```vbnet
Protected Sub New(nodeId As Guid, namespaceIndex As Integer)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [Guid](https://learn.microsoft.com/dotnet/api/system.guid) | The general unique identifier (= GUID) of the node on which the service, who will execute this command, will operate on its [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute. |
| `namespaceIndex` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The index of the namespace within that the node with the `nodeId` specified can be located. |

#### OpcNodeAttributeServiceCommand(int, int)

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

Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` and `namespaceIndex` specified to operate on the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute.

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

```csharp
protected OpcNodeAttributeServiceCommand(int nodeId, int namespaceIndex)
```

</div>

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

```vbnet
Protected Sub New(nodeId As Integer, namespaceIndex As Integer)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The numeric node identifier of the node on which the service, who will execute this command, will operate on its [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute. |
| `namespaceIndex` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The index of the namespace within that the node with the `nodeId` specified can be located. |

#### OpcNodeAttributeServiceCommand(uint, int)

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

Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` and `namespaceIndex` specified to operate on the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute.

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

```csharp
protected OpcNodeAttributeServiceCommand(uint nodeId, int namespaceIndex)
```

</div>

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

```vbnet
Protected Sub New(nodeId As UInteger, namespaceIndex As Integer)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [UInt32](https://learn.microsoft.com/dotnet/api/system.uint32) | The numeric node identifier of the node on which the service, who will execute this command, will operate on its [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute. |
| `namespaceIndex` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The index of the namespace within that the node with the `nodeId` specified can be located. |

#### OpcNodeAttributeServiceCommand(string, int)

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

Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` and `namespaceIndex` specified to operate on the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute.

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

```csharp
protected OpcNodeAttributeServiceCommand(string nodeId, int namespaceIndex)
```

</div>

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

```vbnet
Protected Sub New(nodeId As String, namespaceIndex As Integer)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The textual node identifier of the node on which the service, who will execute this command, will operate on its [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute. |
| `namespaceIndex` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The index of the namespace within that the node with the `nodeId` specified can be located. |

#### OpcNodeAttributeServiceCommand(byte\[\], int, OpcAttribute)

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

Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` and `namespaceIndex` specified to operate on the `attribute`.

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

```csharp
protected OpcNodeAttributeServiceCommand(
    byte[] nodeId,
    int namespaceIndex,
    OpcAttribute attribute)
```

</div>

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

```vbnet
Protected Sub New(
    nodeId As Byte(),
    namespaceIndex As Integer,
    attribute As OpcAttribute)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [Byte](https://learn.microsoft.com/dotnet/api/system.byte)[] | The opaque node identifier of the node on which the service, who will execute this command, will operate on its `attribute`. |
| `namespaceIndex` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The index of the namespace within that the node with the `nodeId` specified can be located. |
| `attribute` | [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 that defines which node attribute is to be used by the service. |

#### OpcNodeAttributeServiceCommand(Guid, int, OpcAttribute)

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

Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` and `namespaceIndex` specified to operate on the `attribute`.

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

```csharp
protected OpcNodeAttributeServiceCommand(
    Guid nodeId,
    int namespaceIndex,
    OpcAttribute attribute)
```

</div>

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

```vbnet
Protected Sub New(
    nodeId As Guid,
    namespaceIndex As Integer,
    attribute As OpcAttribute)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [Guid](https://learn.microsoft.com/dotnet/api/system.guid) | The general unique identifier (= GUID) of the node on which the service, who will execute this command, will operate on its `attribute`. |
| `namespaceIndex` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The index of the namespace within that the node with the `nodeId` specified can be located. |
| `attribute` | [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 that defines which node attribute is to be used by the service. |

#### OpcNodeAttributeServiceCommand(int, int, OpcAttribute)

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

Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` and `namespaceIndex` specified to operate on the `attribute`.

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

```csharp
protected OpcNodeAttributeServiceCommand(
    int nodeId,
    int namespaceIndex,
    OpcAttribute attribute)
```

</div>

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

```vbnet
Protected Sub New(
    nodeId As Integer,
    namespaceIndex As Integer,
    attribute As OpcAttribute)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The numeric node identifier of the node on which the service, who will execute this command, will operate on its `attribute`. |
| `namespaceIndex` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The index of the namespace within that the node with the `nodeId` specified can be located. |
| `attribute` | [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 that defines which node attribute is to be used by the service. |

#### OpcNodeAttributeServiceCommand(uint, int, OpcAttribute)

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

Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` and `namespaceIndex` specified to operate on the `attribute`.

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

```csharp
protected OpcNodeAttributeServiceCommand(
    uint nodeId,
    int namespaceIndex,
    OpcAttribute attribute)
```

</div>

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

```vbnet
Protected Sub New(
    nodeId As UInteger,
    namespaceIndex As Integer,
    attribute As OpcAttribute)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [UInt32](https://learn.microsoft.com/dotnet/api/system.uint32) | The numeric node identifier of the node on which the service, who will execute this command, will operate on its `attribute`. |
| `namespaceIndex` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The index of the namespace within that the node with the `nodeId` specified can be located. |
| `attribute` | [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 that defines which node attribute is to be used by the service. |

#### OpcNodeAttributeServiceCommand(string, int, OpcAttribute)

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

Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` and `namespaceIndex` specified to operate on the `attribute`.

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

```csharp
protected OpcNodeAttributeServiceCommand(
    string nodeId,
    int namespaceIndex,
    OpcAttribute attribute)
```

</div>

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

```vbnet
Protected Sub New(
    nodeId As String,
    namespaceIndex As Integer,
    attribute As OpcAttribute)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The textual node identifier of the node on which the service, who will execute this command, will operate on its `attribute`. |
| `namespaceIndex` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The index of the namespace within that the node with the `nodeId` specified can be located. |
| `attribute` | [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 that defines which node attribute is to be used by the service. |

#### OpcNodeAttributeServiceCommand(OpcNodeId)

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

Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` specified to operate on the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute.

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

```csharp
protected OpcNodeAttributeServiceCommand(OpcNodeId nodeId)
```

</div>

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

```vbnet
Protected 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 on which the service, who will execute this command, will operate on its [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute. |

**Exceptions**

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

#### OpcNodeAttributeServiceCommand(OpcNodeId, OpcAttribute)

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

Initializes a new instance of the [OpcNodeAttributeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeattributeservicecommand/) class using the `nodeId` specified to operate on the `attribute` defined.

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

```csharp
protected OpcNodeAttributeServiceCommand(
    OpcNodeId nodeId,
    OpcAttribute attribute)
```

</div>

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

```vbnet
Protected 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 on which the service, who will execute this command, will operate on its `attribute`. |
| `attribute` | [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 that defines which node attribute is to be used by the service. |

**Exceptions**

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

## Properties

### Attribute

Gets the [OpcAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/) used to setup this command and which is used by the node attribute orientated service to operate on the node identified by the [NodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeservicecommand/members#nodeid).

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

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

</div>

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

```vbnet
Public 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.
