InstanceCollection.T..TryGetInstanceByName Method

Tries to get Instnaces by name.

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

Syntax

C#

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

VB

Public Overridable Function TryGetInstanceByName ( 
    instanceName As String,
    <OutAttribute> ByRef instances As IList(Of T)
) As Boolean

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