ReadOnlyRpcMethodCollection.TryGetMethod Method (String, IRpcMethod.)

Tries to get the specified method.

Namespace:  TwinCAT.TypeSystem
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 6.0.328+39e3229

Syntax

C#

public bool TryGetMethod(
    string methodName,
    out IRpcMethod?? method
)

Parameters

methodName

Type: System.String
Name of the method.

method

Type: TwinCAT.TypeSystem.IRpcMethod.
The method if fund, NULL otherwise.

Return Value

Type: Boolean
true if found, false otherwise.

Implements

IRpcMethodCollection.TryGetMethod(String, IRpcMethod.)

Reference

ReadOnlyRpcMethodCollection Class

TryGetMethod Overload

TwinCAT.TypeSystem Namespace