AdsSymbolicServerOnRpcInvoke Method

Handler function called when an RpcInvoke occurs.


Namespace: TwinCAT.Ads.Server
Assembly: TwinCAT.Ads.SymbolicServer (in TwinCAT.Ads.SymbolicServer.dll) Version: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470

Syntax

C#

protected virtual AdsErrorCode OnRpcInvoke(
    IInterfaceInstance structInstance,
    IRpcMethod method,
    Object[] values,
    out Object?? returnValue
)

Parameters

structInstance  IInterfaceInstance

The structure instance.

method  IRpcMethod

The method.

values  Object

The values.

returnValue  Object

The return value.

Return Value

AdsErrorCode
AdsErrorCode.

Remarks

Overwrite this method to react on RpcInvokes within your custom AdsSymbolicServer. The default implementation returns DeviceServiceNotSupported.

Reference

AdsSymbolicServer Class TwinCAT.Ads.Server Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026