AdsClient.InvokeRpcMethodAsync(IRpcCallableInstance, IRpcMethod, Object[], AnyTypeSpecifier[], AnyTypeSpecifier, CancellationToken) Method
invoke RPC method as an asynchronous operation.
Namespace: TwinCAT.Ads
Assembly: TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470
Syntax
C#
public Task<ResultRpcMethod> InvokeRpcMethodAsync(
IRpcCallableInstance symbol,
IRpcMethod rpcMethod,
Object[]? inParameters,
AnyTypeSpecifier[]? outSpec,
AnyTypeSpecifier? returnSpec,
CancellationToken cancel
)Parameters
|
symbol IRpcCallableInstance |
The symbol. |
|
rpcMethod IRpcMethod |
The RPC method. |
|
inParameters Object[] |
The in parameters. |
|
outSpec AnyTypeSpecifier[] |
The out spec. |
|
returnSpec AnyTypeSpecifier |
The return spec. |
|
cancel CancellationToken |
The cancellation token. |
Implements
Exceptions
|
Exception |
Condition |
|---|---|
|
symbol | |
|
rpcMethod |
See Also
Reference
AdsClient Class InvokeRpcMethodAsync Overload TwinCAT.Ads Namespace
Beckhoff Automation GmbH & Co. KG 2001-2026