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 |
rpcMethod |
Type: TwinCAT.TypeSystem.IRpcMethod |
inParameters |
Type: .System.Object. |
cancel |
Type: System.Threading.CancellationToken |
Exceptions
Exception |
Condition |
---|---|
symbol | |
rpcMethod |