C# Class Microsoft.Azure.Commands.ResourceManager.Cmdlets.Json.TimeSpanConverter

The TimeSpan converter based on ISO 8601 format.
Inheritance: Newtonsoft.Json.JsonConverter
Afficher le fichier Open project: Azure/azure-powershell

Méthodes publiques

Méthode Description
CanConvert ( Type objectType ) : bool

Determines whether this instance can convert the specified object type.

ReadJson ( JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer ) : object

Reads the JSON.

WriteJson ( JsonWriter writer, object value, JsonSerializer serializer ) : void

Writes the JSON.

Method Details

CanConvert() public méthode

Determines whether this instance can convert the specified object type.
public CanConvert ( Type objectType ) : bool
objectType System.Type Type of the object.
Résultat bool

ReadJson() public méthode

Reads the JSON.
public ReadJson ( JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer ) : object
reader Newtonsoft.Json.JsonReader The reader.
objectType System.Type Type of the object.
existingValue object The existing value.
serializer Newtonsoft.Json.JsonSerializer The serializer.
Résultat object

WriteJson() public méthode

Writes the JSON.
public WriteJson ( JsonWriter writer, object value, JsonSerializer serializer ) : void
writer Newtonsoft.Json.JsonWriter The writer.
value object The value.
serializer Newtonsoft.Json.JsonSerializer The serializer.
Résultat void