# OpcAddCommentMethodNode.AddCommentExCallback Delegate

> Reference: Applies the comment to the state of a condition.

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

Applies the `comment` to the state of a condition.

## Syntax

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

```csharp
public delegate void OpcAddCommentMethodNode.AddCommentExCallback(
    OpcMethodContext context,
    byte[] eventId,
    OpcText comment)
```

</div>

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

```vbnet
<CLSCompliant(False)>
Public Delegate Sub OpcAddCommentMethodNode.AddCommentExCallback(
    context As OpcMethodContext,
    eventId As Byte(),
    comment As OpcText)
```

</div>

## Parameters

| Name | Type | Description |
|---|---|---|
| `context` | [OpcMethodContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcmethodcontext/) | The [OpcMethodContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcmethodcontext/) to use when appling the comment. This instance will be also updated with the outcome of the method call. |
| `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. |

## Remarks

This method does provide the following [OpcResult](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcresult/) information:

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

## Applies to

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