Share via


TableValue.Index Method

Definition

Overloads

Index(Int32)

Lookup the record at the given 1-based index, or return an error value if out of range.

Index(Int32, Boolean)

With mutation support, lookup the record at the given 1-based index, or return an error value if out of range.

Index(Int32)

Lookup the record at the given 1-based index, or return an error value if out of range.

public Microsoft.PowerFx.Types.DValue<Microsoft.PowerFx.Types.RecordValue> Index(int index1);
member this.Index : int -> Microsoft.PowerFx.Types.DValue<Microsoft.PowerFx.Types.RecordValue>
Public Function Index (index1 As Integer) As DValue(Of RecordValue)

Parameters

index1
Int32

1-based index.

Returns

The record or an errorValue.

Applies to

Index(Int32, Boolean)

With mutation support, lookup the record at the given 1-based index, or return an error value if out of range.

public Microsoft.PowerFx.Types.DValue<Microsoft.PowerFx.Types.RecordValue> Index(int index1, bool mutationCopy);
member this.Index : int * bool -> Microsoft.PowerFx.Types.DValue<Microsoft.PowerFx.Types.RecordValue>
Public Function Index (index1 As Integer, mutationCopy As Boolean) As DValue(Of RecordValue)

Parameters

index1
Int32

1-based index.

mutationCopy
Boolean

copies the element, and the table entry pointing to it, when in a mutation context.

Returns

The record or an errorValue.

Applies to