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.JsonMappingAssembly: MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 23.12.13247.3
public JArray EnsureArrayExists(
JObject jObj,
string propName
)
- jObj JObject
- The object that should contain a property with an array.
- propName String
- The name of the property where the array should exist.
JArrayA reference to the property's array value.