IArrayInstance.TryGetElement Method (.Int32., ISymbol.)

Tries to get the array element with specified indices (only first level on jagged arrays)

Namespace:  TwinCAT.TypeSystem
Assembly:  TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 6.0.116+a71ced3

Syntax

C#

bool TryGetElement(
    int[] indices,
    out ISymbol?? symbol
)

Parameters

indices

Type: .System.Int32.
The indices.

symbol

Type: TwinCAT.TypeSystem.ISymbol.
The found Array element symbol (out-parameter).

Return Value

Type: Boolean
true if found, false if the indices specifiers is out-of-range.

Reference

IArrayInstance Interface

TryGetElement Overload

TwinCAT.TypeSystem Namespace