ITcAdsRpcInvoke.TryInvokeRpcMethod Method (String, String, .Object., Object.)

Invokes the specified RPC Method

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

Syntax

C#

AdsErrorCode TryInvokeRpcMethod(
    string symbolPath,
    string methodName,
    Object[] parameters,
    out Object retValue
)

VB

Function TryInvokeRpcMethod ( 
    symbolPath As String,
    methodName As String,
    parameters As Object(),
    <OutAttribute> ByRef retValue As Object
) As AdsErrorCode

Parameters

symbolPath

Type: System.String
The symbol path.

methodName

Type: System.String
The method name.

parameters

Type: .System.Object.
The parameters.

retValue

Type: System.Object.
The return value of the RPC method as object.

Return Value

Type: AdsErrorCode
The ADS Error Code.

Reference

ITcAdsRpcInvoke Interface

TryInvokeRpcMethod Overload

TwinCAT.Ads Namespace