DynamicSymbolsContainer.TryGetInstance Method

Tries to get the IInstance. of the specified path.

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

Syntax

C#

public bool TryGetInstance(
    string instanceSpecifier,
    out ISymbol symbol
)

VB

Public Function TryGetInstance ( 
    instanceSpecifier As String,
    <OutAttribute> ByRef symbol As ISymbol
) As Boolean

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

DynamicSymbolsContainer Class

TwinCAT.TypeSystem Namespace