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
Syntaxpublic JObject EnsureObjectExists(
JObject jObj,
string propName
)
Public Function EnsureObjectExists (
jObj As JObject,
propName As String
) As JObject
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:
JObjectA reference to the property's object value.
See Also