InstanceCollection.T..TryGetInstanceByName Method

Tries to get Instances by name.

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

Syntax

C#

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

Parameters

instanceName

Type: System.String
Name of the instance.

instances

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

Return Value

Type: Boolean
true if the IInstance is found; otherwise, false

Implements

IInstanceCollection.T..TryGetInstanceByName(String, IList.T..)

Reference

InstanceCollection.T. Class

TwinCAT.TypeSystem.Generic Namespace