DurationHelper.Add(Duration, Duration) Method

Definition

Adds the TimeSpan component of two Duration values. C# and Microsoft Visual Basic code should use the Addition (+) operator or the Duration.Add method instead.

 static Duration Add(Duration const& target, Duration const& duration);
public static Duration Add(Duration target, Duration duration);
function add(target, duration)
Public Shared Function Add (target As Duration, duration As Duration) As Duration

Parameters

target
Duration

The value to add to.

duration
Duration

The value to add.

Returns

The resulting Duration after TimeSpan component addition.

Applies to