AdsClient.InvokeRpcMethodAsync Method (IRpcCallableInstance, IRpcMethod, .Object., .AnyTypeSpecifier., AnyTypeSpecifier, 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,
AnyTypeSpecifier[]? outSpec,
AnyTypeSpecifier? returnSpec,
CancellationToken cancel
)
Parameters
symbol |
Type: TwinCAT.TypeSystem.IRpcCallableInstance |
rpcMethod |
Type: TwinCAT.TypeSystem.IRpcMethod |
inParameters |
Type: .System.Object. |
outSpec |
Type: .TwinCAT.TypeSystem.AnyTypeSpecifier. |
returnSpec |
Type: TwinCAT.TypeSystem.AnyTypeSpecifier |
cancel |
Type: System.Threading.CancellationToken |
Implements
Exceptions
Exception |
Condition |
---|---|
symbol | |
rpcMethod |