DurationConverter Class

Definition

Converter for serializing and deserializing Duration objects.

public class DurationConverter : Newtonsoft.Json.JsonConverter
type DurationConverter = class
    inherit JsonConverter
Public Class DurationConverter
Inherits JsonConverter
Inheritance
Newtonsoft.Json.JsonConverter
DurationConverter

Constructors

DurationConverter()

Methods

CanConvert(Type)

Checks if the given object can be converted into a Duration object.

ReadJson(JsonReader, Type, Object, JsonSerializer)

Deserialize the edm.duration into an Microsoft.Graph.Duration object.

WriteJson(JsonWriter, Object, JsonSerializer)

Serializes the edm.duration representation of the Microsoft.Graph.Duration object.

Applies to