SymbolCollection<T>.TryGetInstances 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  Func<T, Boolean>

The predicate function

recurse  Boolean

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

instances  IList<T>

The instances.

Return Value

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

See Also

Reference

SymbolCollection<T> Class TwinCAT.TypeSystem.Generic Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026