InstanceCollectionTTryGetInstanceByName Method

Tries to get Instances by name.


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

Syntax

C#

public virtual bool TryGetInstanceByName(
    string instanceName,
    out IList<T>? instances
)

Parameters

instanceName  String

Name of the instance.

instances  IListT

The instances found.

Return Value

Boolean
true if the IInstance is found; otherwise, false

Implements

IInstanceCollectionTTryGetInstanceByName(String, IListT)

Reference

InstanceCollectionT Class TwinCAT.TypeSystem.Generic Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026