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

The TimeSpan converter based on ISO 8601 format.
Inheritance: Newtonsoft.Json.JsonConverter
ファイルを表示 Open project: Azure/azure-powershell

Public Methods

Method 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 method

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

ReadJson() public method

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.
return object

WriteJson() public method

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.
return void