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


Type: JArray
The array that should contain an item with an object.
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