Infosys在阅读器中打开 / AI 翻译

ADS · 0 次阅读

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

Tries to get the array element

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

Syntax

C#

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

VB

Public 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.