ReadOnlyInstanceCollection.T..TryGetInstance Method

Tries to get the instance with the specified instance path.

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

Syntax

C#

public bool TryGetInstance(
    string instancePath,
    out T instance
)

VB

Public Function TryGetInstance ( 
    instancePath As String,
    <OutAttribute> ByRef instance As T
) As Boolean

Parameters

instancePath

Type: System.String
The instance path.

instance

Type: T.
The instance.

Return Value

Type: Boolean
true, if found, false if not contained.

Implements

IInstanceCollection.T..TryGetInstance(String, T.)

Reference

ReadOnlyInstanceCollection.T. Class

TwinCAT.TypeSystem.Generic Namespace