Click or drag to resize

JObjectHelperSetValue Method

Sets a value in a target JSON structure at the specified path.

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 JToken SetValue(
	JObject target,
	string targetPath,
	JToken value
)

Parameters

target
Type: JObject
The structure to set the value in.
targetPath
Type: SystemString
The path in the target structure where the value should be set.
value
Type: JToken
The value to set.

Return Value

Type: JToken
The JSON property or array item that was set.
See Also