# OpcMethodExecuteCallback Delegate

> Reference: Performs the tasks necessary to implement the logic associated with a specific method using the context and inputArguments specified.

<span class="api-meta">since v2.9</span>

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

Performs the tasks necessary to implement the logic associated with a specific method using the `context` and `inputArguments` specified.

## Syntax

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

```csharp
public delegate void OpcMethodExecuteCallback(
    OpcMethodContext context,
    IList<object> inputArguments,
    IList<object> outputArguments)
```

</div>

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

```vbnet
Public Delegate Sub OpcMethodExecuteCallback(
    context As OpcMethodContext,
    inputArguments As IList(Of Object),
    outputArguments As IList(Of Object))
```

</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/) which provides the contextual information required to execute the method. |
| `inputArguments` | [IList](https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1)&lt;[Object](https://learn.microsoft.com/dotnet/api/system.object)&gt; | The generic list of [object](https://learn.microsoft.com/dotnet/api/system.object) values to use / respect during the execution of the method. |
| `outputArguments` | [IList](https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1)&lt;[Object](https://learn.microsoft.com/dotnet/api/system.object)&gt; | The generic list of [object](https://learn.microsoft.com/dotnet/api/system.object) values to use for out, ref (in Visual Basic ByRef) and returned values. |

## Remarks

Any OPC UA related result information is to be set using the [Result](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcmethodcontext/members#result) property of the `context`.

## Applies to

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