# OpcSimpleAttributeOperand Members

> Reference: Represents an operand of an OpcContentFilterElement which is the value of an attribute of a node described by a type definition and a path of browse names.

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcSimpleAttributeOperand</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 [OpcFilterOperand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcfilteroperand/members).

## Constructors

### OpcSimpleAttributeOperand

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

| Overload | Description |
|---|---|
| [OpcSimpleAttributeOperand(OpcNodeId)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcsimpleattributeoperand/members#opcsimpleattributeoperand-opc-uafx-opcnodeid) | Initializes a new instance of the [OpcSimpleAttributeOperand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcsimpleattributeoperand/) class referring to the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute of the type definition with the `nodeId` specified. |
| [OpcSimpleAttributeOperand(OpcNodeId, params OpcName\[\])](#opcsimpleattributeoperand-opc-uafx-opcnodeid-opc-uafx-opcname-array) | Initializes a new instance of the [OpcSimpleAttributeOperand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcsimpleattributeoperand/) class referring to the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute of the node reached by the `nodePathElements` from the type definition with the `nodeId` specified. |
| [OpcSimpleAttributeOperand(OpcNodeId, OpcAttribute)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcsimpleattributeoperand/members#opcsimpleattributeoperand-opc-uafx-opcnodeid-opc-uafx-opcattribute) | Initializes a new instance of the [OpcSimpleAttributeOperand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcsimpleattributeoperand/) class referring to the `attribute` of the type definition with the `nodeId` specified. |
| [OpcSimpleAttributeOperand(OpcNodeId, OpcAttribute, OpcNamePath)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcsimpleattributeoperand/members#opcsimpleattributeoperand-opc-uafx-opcnodeid-opc-uafx-opcattribute-opc-uafx-opcnamepath) | Initializes a new instance of the [OpcSimpleAttributeOperand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcsimpleattributeoperand/) class referring to the `attribute` of the node reached by the `nodePath` from the type definition with the `nodeId` specified. |
| [OpcSimpleAttributeOperand(OpcNodeId, OpcAttribute, params OpcName\[\])](#opcsimpleattributeoperand-opc-uafx-opcnodeid-opc-uafx-opcattribute-opc-uafx-opcname-array) | Initializes a new instance of the [OpcSimpleAttributeOperand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcsimpleattributeoperand/) class referring to the `attribute` of the node reached by the `nodePathElements` from the type definition with the `nodeId` specified. |

#### OpcSimpleAttributeOperand(OpcNodeId)

Initializes a new instance of the [OpcSimpleAttributeOperand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcsimpleattributeoperand/) class referring to the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute of the type definition with the `nodeId` specified.

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

```csharp
public OpcSimpleAttributeOperand(OpcNodeId nodeId)
```

</div>

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

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

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) | The identifier of the type definition. |

**Exceptions**

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

#### OpcSimpleAttributeOperand(OpcNodeId, params OpcName\[\])

Initializes a new instance of the [OpcSimpleAttributeOperand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcsimpleattributeoperand/) class referring to the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) attribute of the node reached by the `nodePathElements` from the type definition with the `nodeId` specified.

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

```csharp
public OpcSimpleAttributeOperand(
    OpcNodeId nodeId,
    params OpcName[] nodePathElements)
```

</div>

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

```vbnet
Public Sub New(nodeId As OpcNodeId, ParamArray nodePathElements As OpcName())
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) | The identifier of the type definition. |
| `nodePathElements` | params [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/)[] | The browse names of the nodes along the path. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `nodeId`, the `nodePathElements` or one of its elements is a null reference (Nothing in Visual Basic). |

#### OpcSimpleAttributeOperand(OpcNodeId, OpcAttribute)

Initializes a new instance of the [OpcSimpleAttributeOperand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcsimpleattributeoperand/) class referring to the `attribute` of the type definition with the `nodeId` specified.

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

```csharp
public OpcSimpleAttributeOperand(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 identifier of the type definition. |
| `attribute` | [OpcAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/) | The attribute. |

**Exceptions**

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

#### OpcSimpleAttributeOperand(OpcNodeId, OpcAttribute, OpcNamePath)

Initializes a new instance of the [OpcSimpleAttributeOperand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcsimpleattributeoperand/) class referring to the `attribute` of the node reached by the `nodePath` from the type definition with the `nodeId` specified.

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

```csharp
public OpcSimpleAttributeOperand(
    OpcNodeId nodeId,
    OpcAttribute attribute,
    OpcNamePath nodePath)
```

</div>

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

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

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) | The identifier of the type definition. |
| `attribute` | [OpcAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/) | The attribute of the node reached. |
| `nodePath` | [OpcNamePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamepath/) | The path of browse names to the node. |

**Exceptions**

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

#### OpcSimpleAttributeOperand(OpcNodeId, OpcAttribute, params OpcName\[\])

Initializes a new instance of the [OpcSimpleAttributeOperand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcsimpleattributeoperand/) class referring to the `attribute` of the node reached by the `nodePathElements` from the type definition with the `nodeId` specified.

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

```csharp
public OpcSimpleAttributeOperand(
    OpcNodeId nodeId,
    OpcAttribute attribute,
    params OpcName[] nodePathElements)
```

</div>

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

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

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) | The identifier of the type definition. |
| `attribute` | [OpcAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/) | The attribute of the node reached. |
| `nodePathElements` | params [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/)[] | The browse names of the nodes along the path. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `nodeId`, the `nodePathElements` or one of its elements is a null reference (Nothing in Visual Basic). |

## Properties

### Attribute

Gets the attribute the operand refers to.

<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/)

The attribute of the node; [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/#value) if no attribute has been specified.

### NodeId

Gets the identifier of the type definition the operand starts from.

<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/)

The identifier of the type definition.

**Remarks**

Despite its name, the property provides the type definition of the operand, not the identifier of a node instance.

### NodePath

Gets the path of browse names from the type definition to the node whose attribute the operand refers to.

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

```csharp
public OpcNamePath NodePath { get; }
```

</div>

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

```vbnet
Public ReadOnly Property NodePath As OpcNamePath
```

</div>

**Property value**

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

The path or a null reference (Nothing in Visual Basic) if the operand has been created without a path.
