Click or drag to resize

JObjectHelperSetArrayItem Method

Sets a value at a certain index in an array.

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

Parameters

jArr
Type: JArray
The array to place the value in.
index
Type: SystemInt32
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
Type: JToken
The value to set.

Return Value

Type: JToken
The token of the value set at the index.
See Also