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