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: 2.1.0.1 (2.1.0.1)
Syntax
C#
public JArray EnsureArrayExists(
	JObject jObj,
	string propName
)

Parameters

jObj
Type: JObject
The object that should contain a property with an array.
propName
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