JObjectHelperSetOriginalValue Method |
Sets the original (source) value in a location corresponding to the
targetValue location in the target structure.
This allows for the original value to be preserved when reverting back
to the original format for conversions that lose information.
Namespace:
MFiles.VAF.Configuration.JsonMapping
Assembly:
MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 21.8.10524.1
Syntaxpublic void SetOriginalValue(
JToken targetValue,
JToken origValue,
string suffix = "-OriginalValue"
)
Public Sub SetOriginalValue (
targetValue As JToken,
origValue As JToken,
Optional suffix As String = "-OriginalValue"
)
public:
void SetOriginalValue(
JToken^ targetValue,
JToken^ origValue,
String^ suffix = L"-OriginalValue"
)
Parameters
- targetValue
- Type: JToken
The target value that holds a converted value that can't be
converted back without losing some information.
- origValue
- Type: JToken
The original value to also store in the target structure. - suffix (Optional)
- Type: SystemString
The suffix to use when creating a property name to store the original value.
See Also