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 (in TwinCAT.Ads.dll) Version: 4.3.0.0

Syntax

C#

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

VB

Function TryGetElement ( 
    indices As Integer(),
    <OutAttribute> ByRef symbol As ISymbol
) As Boolean

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