JsonValueAdaptor Class

JSON adaptor for the underlying value in TypedValue.

Definition

Namespace: MFiles.VAF.Configuration.JsonAdaptor
Assembly: MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 23.12.13247.3
C#
[SerializableAttribute]
public class JsonValueAdaptor
Inheritance
Object    JsonValueAdaptor

Constructors

JsonValueAdaptor Simple Constructor.
JsonValueAdaptor(MFDataType, Object) Constructor that sets the value immediately.

Properties

Boolean Boolean value. Only available when JsonValueAdaptorValueProperty = Boolean Will only be serialized if available. Accepts Boolean and values that are implicitly cast to it.
Date Date value. Only available (not null) when JsonValueAdaptorValueProperty = Date Will only be serialized if available. Accepts DateTime and strings that can be parsed to it.
Float Float value. Only available when JsonValueAdaptorValueProperty = Float Will only be serialized if available. Accepts Double and values that are implicitly cast to it.
Integer Integer value. Only available when JsonValueAdaptorValueProperty = Integer Will only be serialized if available. Accepts Int64 and values that are implicitly cast to it.
IsNull Indicates when the value is considered null. Only available when JsonValueAdaptorValueProperty = Null Will only be serialized if available, and in those cases, it is always set to true. Setting the value to false will have no effect on the object.
Lookup Lookup value. Only available (not null) when JsonValueAdaptorValueProperty = Date Will only be serialized if available. Accepts all types adaptable via TryAdapt(Object, LookupJA).
Lookups Lookups value. Only available (not null) when JsonValueAdaptorValueProperty = Lookups Will only be serialized if available. Accepts all types adaptable via TryAdapt(Object, LookupsJA).
Text Text value. Only available when JsonValueAdaptorValueProperty = Text Will only be serialized if available.
Time Time value. Only available (not null) when JsonValueAdaptorValueProperty = Time Will only be serialized if available. Accepts DateTime and strings that can be parsed to it.
Timestamp Timestamp value. Only available (not null) when JsonValueAdaptorValueProperty = Timestamp Will only be serialized if available. Accepts DateTime and strings that can be parsed to it.
Value The underlying value of the object.
valueProperty Indicates the property that will be serialized for the current value.

Methods

SetValue Sets the object's underlying value with an explicit data type.

See Also