AdsClient.InvokeRpcMethodAsync Method (IRpcCallableInstance, IRpcMethod, .Object., CancellationToken)

invoke RPC method as an asynchronous operation.

Namespace:  TwinCAT.Ads
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 6.0.328+39e3229

Syntax

C#

public Task<ResultRpcMethod> InvokeRpcMethodAsync(
    IRpcCallableInstance symbol,
    IRpcMethod rpcMethod,
    Object[]? inParameters,
    CancellationToken cancel
)

Parameters

symbol

Type: TwinCAT.TypeSystem.IRpcCallableInstance
The symbol.

rpcMethod

Type: TwinCAT.TypeSystem.IRpcMethod
The RPC method.

inParameters

Type: .System.Object.
The in parameters.

cancel

Type: System.Threading.CancellationToken
The cancellation token.

Return Value

Type: Task.ResultRpcMethod.
Task<ResultRpcMethod>.

Exceptions

Exception

Condition

ObjectDisposedException

ClientNotConnectedException

ArgumentNullException

symbol

ArgumentNullException

rpcMethod

Reference

AdsClient Class

InvokeRpcMethodAsync Overload

TwinCAT.Ads Namespace