JObjectHelperSetArrayItem Method

Sets a value at a certain index in an array.

Definition

Namespace: MFiles.VAF.Configuration.JsonMapping
Assembly: MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 23.12.13247.3
C#
public JToken SetArrayItem(
	JArray jArr,
	int index,
	JToken value
)

Parameters

jArr  JArray
The array to place the value in.
index  Int32
The index at which to place the array. Negative values will simply add an item at the end. Additional null values will be added for every index between jArr.Count and index.
value  JToken
The value to set.

Return Value

JToken
The token of the value set at the index.

See Also