JObjectHelperEnsureObjectExists(JObject, String) Method

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.

Definition

Namespace: MFiles.VAF.Configuration.JsonMapping
Assembly: MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 23.12.13247.3
C#
public JObject EnsureObjectExists(
	JObject jObj,
	string propName
)

Parameters

jObj  JObject
The object that should contain a property with an object.
propName  String
The name of the property where the object should exist.

Return Value

JObject
A reference to the property's object value.

See Also