ReadOnlyInstanceCollectionTTryGetInstance Method

Tries to get the instance with the specified instance path.


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

Syntax

C#

public bool TryGetInstance(
    string instancePath,
    out T? instance
)

Parameters

instancePath  String

The instance path.

instance  T

The instance.

Return Value

Boolean
true, if found, false if not contained.

Implements

IInstanceCollectionTTryGetInstance(String, T)

Reference

ReadOnlyInstanceCollectionT Class TwinCAT.TypeSystem.Generic Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026