JObjectHelperTryFindOriginalValue Method |
Retrieves an original value that may have been set in a source structure for converted
values that might lose some information.
Typically the original value would have been saved with the
SetOriginalValue(JToken, JToken, String) method.
Namespace:
MFiles.VAF.Configuration.JsonMapping
Assembly:
MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 21.8.10524.1
Syntaxpublic bool TryFindOriginalValue(
JToken sourceValue,
out JToken origValue,
string suffix = "-OriginalValue"
)
Public Function TryFindOriginalValue (
sourceValue As JToken,
<OutAttribute> ByRef origValue As JToken,
Optional suffix As String = "-OriginalValue"
) As Boolean
public:
bool TryFindOriginalValue(
JToken^ sourceValue,
[OutAttribute] JToken^% origValue,
String^ suffix = L"-OriginalValue"
)
Parameters
- sourceValue
- Type: JToken
The source value that may have a corresponding original value.
- origValue
- Type: JToken
Receives the original value if found. - suffix (Optional)
- Type: SystemString
The suffix that was used to store the original value.
Return Value
Type:
BooleanTrue if the original value was found, false otherwise.
See Also