# OpcAttributeValue&lt;T&gt; Class

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

Represents the immutable value of an attribute.

## Syntax

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

```csharp
public class OpcAttributeValue<T>
```

</div>

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

```vbnet
Public Class OpcAttributeValue(Of T)
```

</div>

## Type parameters

| Name | Description |
|---|---|
| `T` | The type of the attribute value. |

## Inheritance

[Object](https://learn.microsoft.com/dotnet/api/system.object) → **OpcAttributeValue&lt;T&gt;**

## Derived types

- [OpcVariableValue&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvariablevalue-1/)

## Constructors

| Name | Description |
|---|---|
| [OpcAttributeValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattributevalue-1/members#opcattributevalue) | Initializes a new instance of the OpcAttributeValue&lt;T&gt; class using the specified `attribute` and `value`. |

## Properties

| Name | Description |
|---|---|
| [Attribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattributevalue-1/members#attribute) | Gets the [OpcAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattribute/) member which identifies the type of attribute its value is represented. |
| [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattributevalue-1/members#value) | Gets the value of the attribute represented. |

## Methods

| Name | Description |
|---|---|
| [ToString](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcattributevalue-1/members#tostring)<span class="api-meta">override</span> | Returns a string that represents the current OpcAttributeValue&lt;T&gt;. |

## Applies to

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