# OpcCallMethod Class

> Reference: Defines a single command of the IOpcCallMethodsService.

<span class="api-meta">since v2.8</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>
<dt>Members</dt>
<dd><a href="./members">OpcCallMethod Members</a></dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Defines a single command of the [IOpcCallMethodsService](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.iopccallmethodsservice/).

## Syntax

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

```csharp
public class OpcCallMethod : OpcNodeServiceCommand
```

</div>

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

```vbnet
Public Class OpcCallMethod
    Inherits OpcNodeServiceCommand
```

</div>

## Inheritance

[Object](https://learn.microsoft.com/dotnet/api/system.object) → [OpcServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcservicecommand/) → [OpcNodeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeservicecommand/) → **OpcCallMethod**

## Constructors

| Name | Description |
|---|---|
| [OpcCallMethod](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccallmethod/members#opccallmethod)<span class="api-meta">3 overloads</span> | Initializes a new instance of the OpcCallMethod class using the specified `objectId` and `methodId` to call the method without parameters. |

## Properties

| Name | Description |
|---|---|
| [MethodId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccallmethod/members#methodid) | Gets the identifier of the method node to call. |
| [ObjectId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccallmethod/members#objectid) | Gets the identifier of the node which provides the method to call. |
| [Parameters](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccallmethod/members#parameters) | Gets the values of the input arguments of the method. |

Inherits members from [OpcNodeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeservicecommand/members), [OpcServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcservicecommand/members).

## Applies to

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