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
Syntaxpublic JObject EnsureObjectExists(
JArray jArr,
int index
)
Public Function EnsureObjectExists (
jArr As JArray,
index As Integer
) As JObject
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:
JObjectA reference to the property's object value.
See Also