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

Tries to invoke a RPC method.

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

Syntax

C#

public AdsErrorCode TryInvokeRpcMethod(
    ITcAdsSymbol symbol,
    string methodName,
    Object[] parameters,
    out Object returnValue
)

VB

Public Function TryInvokeRpcMethod ( 
    symbol As ITcAdsSymbol,
    methodName As String,
    parameters As Object(),
    <OutAttribute> ByRef returnValue As Object
) As AdsErrorCode

Parameters

symbol

Type: TwinCAT.Ads.ITcAdsSymbol
The symbol.

methodName

Type: System.String
Name of the method.

parameters

Type: .System.Object.
The parameters.

returnValue

Type: System.Object.
The return value.

Return Value

Type: AdsErrorCode
AdsErrorCode.

Implements

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

Exceptions

Exception

Condition

ArgumentNullException

symbol or parameters

ArgumentOutOfRangeException

methodName

AdsSymbolException

Reference

TcAdsClient Class

TryInvokeRpcMethod Overload

TwinCAT.Ads Namespace