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

Parameters

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