Class Duration
A representation of duration as a numeric value and a display string.
Inheritance
System.Object
Duration
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace:GoogleMaps.Directions
Assembly:GoogleMaps.dll
Syntax
public class Duration : IScriptDescriptorData
Fields
Text
A string representation of the duration value.
Declaration
public string Text
Field Value
Type | Description |
---|---|
System.String |
Value
The duration in seconds.
Declaration
public int Value
Field Value
Type | Description |
---|---|
System.Int32 |
Methods
FromScriptData(Object)
Retrieves an instance from script data.
Declaration
public static Duration FromScriptData(object scriptObject)
Parameters
Type | Name | Description |
---|---|---|
System.Object | scriptObject | The script object. |
Returns
Type | Description |
---|---|
Duration |
ToScriptData()
Returns the instance as a script data.
Declaration
public IDictionary<string, object> ToScriptData()
Returns
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> |