TcAdsClient.TryInvokeRpcMethod Method (String, Int32, .Object., Object.)

Invokes the specified RPC Method

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

Syntax

C#

public AdsErrorCode TryInvokeRpcMethod(
    string symbolPath,
    int methodId,
    Object[] parameters,
    out Object retValue
)

VB

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

Parameters

symbolPath

Type: System.String
The symbol path.

methodId

Type: System.Int32
The method identifier.

parameters

Type: .System.Object.
The parameters.

retValue

Type: System.Object.
The return value.

Return Value

Type: AdsErrorCode
true if succeeded, false otherwise.

Implements

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

Exceptions

Exception

Condition

ArgumentOutOfRangeException

symbolPath or methodId

ArgumentNullException

parameters

RpcMethodNotSupportedException

Reference

TcAdsClient Class

TryInvokeRpcMethod Overload

TwinCAT.Ads Namespace