Click or drag to resize

JObjectHelperEnsureArrayExists Method

Returns a reference to an array object at the specified property within an object. Creating the array if the property is not yet set. Throws an exception if a non-array value already exists at the property.

Namespace:  MFiles.VAF.Configuration.JsonMapping
Assembly:  MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 21.8.10524.1
public JArray EnsureArrayExists(
	JObject jObj,
	string propName


Type: JObject
The object that should contain a property with an array.
Type: SystemString
The name of the property where the array should exist.

Return Value

Type: JArray
A reference to the property's array value.
See Also