InstanceCollectionTTryGetInstance Method

Tries to get the IInstance. of the specified path.


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

Syntax

C#

public bool TryGetInstance(
    string instanceSpecifier,
    out T? symbol
)

Parameters

instanceSpecifier  String

The instance path or Instance Name (dependent of Mode setting)

symbol  T

The symbol.

Return Value

Boolean
true if the IInstance is found; otherwise, false

Implements

IInstanceCollectionTTryGetInstance(String, T)

Exceptions

Exception

Condition

ArgumentNullException

instancePath

ArgumentException

Reference

InstanceCollectionT Class TwinCAT.TypeSystem.Generic Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026