DynamicRpcStructInstance.TryInvokeRpcMethod Method (IRpcMethod, .Object., Object.)

Tries to invoke the specified method.

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

Syntax

C#

public int TryInvokeRpcMethod(
    IRpcMethod method,
    Object[] args,
    out Object result
)

VB

Public Function TryInvokeRpcMethod ( 
    method As IRpcMethod,
    args As Object(),
    <OutAttribute> ByRef result As Object
) As Integer

Parameters

method

Type: TwinCAT.TypeSystem.IRpcMethod
The method.

args

Type: .System.Object.
The arguments.

result

Type: System.Object.
The result.

Return Value

Type: Int32
true if the call succeeds, false otherwise.

Implements

IRpcCallableInstance.TryInvokeRpcMethod(IRpcMethod, .Object., Object.)

Exceptions

Exception

Condition

NotImplementedException

Reference

DynamicRpcStructInstance Class

TryInvokeRpcMethod Overload

TwinCAT.TypeSystem Namespace