# OpcAddCommentCallback Delegate

> Reference: Represents the method that will apply the comment to the state of a condition node.

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

Represents the method that will apply the `comment` to the state of a condition node.

## Syntax

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

```csharp
public delegate OpcStatusCode OpcAddCommentCallback(
    OpcNodeContext<OpcConditionNode> context,
    byte[] eventId,
    OpcText comment)
```

</div>

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

```vbnet
Public Delegate Function OpcAddCommentCallback(
    context As OpcNodeContext(Of OpcConditionNode),
    eventId As Byte(),
    comment As OpcText) As OpcStatusCode
```

</div>

## Parameters

| Name | Type | Description |
|---|---|---|
| `context` | [OpcNodeContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodecontext-1/)&lt;[OpcConditionNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcconditionnode/)&gt; | The [OpcNodeContext&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodecontext-1/) to use to apply the comment. |
| `eventId` | [Byte](https://learn.microsoft.com/dotnet/api/system.byte)[] | The identifier identifying a particular event notification where a state was reported for a condition. |
| `comment` | [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) | A localized text to be applied to the condition. |

## Returns

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

The [OpcStatusCode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/) which defines the outcome of the operation.

## Applies to

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