SymbolCollection.T..TryGetInstances Method

Try to get instances with predicate function

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

Syntax

C#

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

VB

Public Function TryGetInstances ( 
    predicate As Func(Of T, Boolean),
    recurse As Boolean,
    <OutAttribute> ByRef instances As IList(Of T)
) As Boolean

Parameters

predicate

Type: System.Func.T, Boolean.
The predicate function

recurse

Type: System.Boolean
if set to true the symbol hierarchy will be searched recursively.

instances

Type: System.Collections.Generic.IList.T..
The instances.

Return Value

Type: Boolean
true if XXXX, false otherwise.

Reference

SymbolCollection.T. Class

TwinCAT.TypeSystem.Generic Namespace