Udostępnij za pośrednictwem


MobileServicePrecisionCheckConverter.WriteJson Method

Definition

Writes the value to Json only if we can ensure that the value will not lose precision when sent to the server. Otherwise it throws an exception.

public override void WriteJson (Newtonsoft.Json.JsonWriter writer, object value, Newtonsoft.Json.JsonSerializer serializer);
override this.WriteJson : Newtonsoft.Json.JsonWriter * obj * Newtonsoft.Json.JsonSerializer -> unit
Public Overrides Sub WriteJson (writer As JsonWriter, value As Object, serializer As JsonSerializer)

Parameters

writer
Newtonsoft.Json.JsonWriter

The JsonWriter instance to use.

value
Object

The value to check on write.

serializer
Newtonsoft.Json.JsonSerializer

The current Serializer.

Applies to