AdsConnection.InvokeRpcMethod Method (ITcAdsSymbol, Int32, .Object.)

Invokes the specified RPC Method

Namespace:  TwinCAT.Ads
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 4.3.0.0

Syntax

C#

public Object InvokeRpcMethod(
    ITcAdsSymbol symbol,
    int methodId,
    Object[] parameters
)

VB

Public Function InvokeRpcMethod ( 
    symbol As ITcAdsSymbol,
    methodId As Integer,
    parameters As Object()
) As Object

Parameters

symbol

Type: TwinCAT.Ads.ITcAdsSymbol
The symbol.

methodId

Type: System.Int32
The method identifier / Virtual Function table index.

parameters

Type: .System.Object.
The parameters.

Return Value

Type: Object
The return value of the Method (as object).

Implements

ITcAdsRpcInvoke.InvokeRpcMethod(ITcAdsSymbol, Int32, .Object.)

Exceptions

Exception

Condition

ObjectDisposedException

Reference

AdsConnection Class

InvokeRpcMethod Overload

TwinCAT.Ads Namespace