Click or drag to resize

JObjectHelperEnsureObjectExists Method (JArray, Int32)

Returns a reference to an object at the specified index within an array. Creating an object at the specified location if one doesn't already exist there. Throws an exception if a non-object value already exists at the index.

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 JObject EnsureObjectExists(
	JArray jArr,
	int index
)

Parameters

jArr
Type: JArray
The array that should contain an item with an object.
index
Type: SystemInt32
The location in the array where an object should exist.

Return Value

Type: JObject
A reference to the property's object value.
See Also