# IOpcCallMethodsService Members

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">IOpcCallMethodsService</a></dd>
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx.services">Opc.UaFx.Services</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 [IOpcService&lt;OpcCallMethodsResponse, OpcCallMethodsRequest&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.iopcservice-2/members).

## Methods

### CallMethods

<span class="api-meta">2 overloads · since v2.8</span>

| Overload | Description |
|---|---|
| [CallMethods(IEnumerable&lt;OpcCallMethod&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.iopccallmethodsservice/members#callmethods-system-collections-generic-ienumerable-of-opc-uafx-opccallmethod)<span class="api-meta">since v2.8</span> |  |
| [CallMethods(params OpcCallMethod\[\])](#callmethods-opc-uafx-opccallmethod-array)<span class="api-meta">since v2.8</span> |  |

**Exceptions (all overloads)**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) |  |
| [InvalidOperationException](https://learn.microsoft.com/dotnet/api/system.invalidoperationexception) |  |
| [OpcException](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcexception/) |  |

#### CallMethods(IEnumerable&lt;OpcCallMethod&gt;)

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

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

```csharp
CallMethodResultCollection CallMethods(IEnumerable<OpcCallMethod> methodsToCall)
```

</div>

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

```vbnet
<CLSCompliant(False)>
Function CallMethods(
    methodsToCall As IEnumerable(Of OpcCallMethod)) As CallMethodResultCollection
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `methodsToCall` | [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[OpcCallMethod](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccallmethod/)&gt; |  |

**Returns**

<abbr title="OPC Foundation stack type, not documented here: Opc.Ua.CallMethodResultCollection">CallMethodResultCollection</abbr>

#### CallMethods(params OpcCallMethod\[\])

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

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

```csharp
CallMethodResultCollection CallMethods(params OpcCallMethod[] methodsToCall)
```

</div>

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

```vbnet
<CLSCompliant(False)>
Function CallMethods(
    ParamArray methodsToCall As OpcCallMethod()) As CallMethodResultCollection
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `methodsToCall` | params [OpcCallMethod](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccallmethod/)[] |  |

**Returns**

<abbr title="OPC Foundation stack type, not documented here: Opc.Ua.CallMethodResultCollection">CallMethodResultCollection</abbr>
