AdsSymbolicServer.OnRpcInvoke Method

Handler function called when an RpcInvoke occurs.

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

Syntax

C#

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

Parameters

structInstance

Type: TwinCAT.TypeSystem.IInterfaceInstance
The structure instance.

method

Type: TwinCAT.TypeSystem.IRpcMethod
The method.

values

Type: .System.Object.
The values.

returnValue

Type: System.Object.
The return value.

Return Value

Type: 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