SymbolCollectionTTryGetInstances Method

Try to get instances with predicate function


Namespace: TwinCAT.TypeSystem.Generic
Assembly: TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470

Syntax

C#

public bool TryGetInstances(
    Func<T, bool> predicate,
    bool recurse,
    out IList<T>? instances
)

Parameters

predicate  FuncT, Boolean

The predicate function

recurse  Boolean

if set to true the symbol hierarchy will be searched recursively.

instances  IListT

The instances.

Return Value

Boolean
true if the Instance(s) is/are found, false otherwise.

Reference

SymbolCollectionT Class TwinCAT.TypeSystem.Generic Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026