Click or drag to resize

JObjectHelperEnsureObjectExists Method (JObject, String)

Returns a reference to an object at the specified property within another object. Creating the object if the property is not yet set. Throws an exception if a non-object 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 JObject EnsureObjectExists(
	JObject jObj,
	string propName


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

Return Value

Type: JObject
A reference to the property's object value.
See Also