DynamicSymbolsCollection.TryGetInstance Method

Tries to get the IInstance. of the specified path.

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

Syntax

C#

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

Parameters

instanceSpecifier

Type: System.String
The instance path or Instance Name (dependent of Mode setting)

symbol

Type: TwinCAT.TypeSystem.ISymbol.
The symbol.

Return Value

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

Exceptions

Exception

Condition

ArgumentNullException

instancePath

ArgumentException

Reference

DynamicSymbolsCollection Class

TwinCAT.TypeSystem Namespace