Duration Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Duration(String) |
Create a Duration object from an ISO8601 duration. |
Duration(TimeSpan) |
Create a Duration object from a TimeSpan. |
Duration(String)
Create a Duration object from an ISO8601 duration.
public Duration (string duration);
new Microsoft.Graph.Duration : string -> Microsoft.Graph.Duration
Public Sub New (duration As String)
Parameters
- duration
- String
An ISO8601 duration. http://en.wikipedia.org/wiki/ISO_8601#Durations
Applies to
Duration(TimeSpan)
Create a Duration object from a TimeSpan.
public Duration (TimeSpan timeSpan);
new Microsoft.Graph.Duration : TimeSpan -> Microsoft.Graph.Duration
Public Sub New (timeSpan As TimeSpan)
Parameters
- timeSpan
- TimeSpan