共用方式為


Duration Constructors

Definition

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

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

Applies to