Addition Operator

Duration.Addition Operator

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Adds two Duration values together.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)

public static Duration operator +(
	Duration t1,
	Duration t2
)

Parameters

t1
Type: System.Windows.Duration
The first Duration to add.
t2
Type: System.Windows.Duration
The second Duration to add.

Return Value

Type: System.Windows.Duration
If both Duration values have TimeSpan values, this method returns the sum of those two values. If either value is set to Automatic, the method returns Automatic. If either value is set to Forever, the method returns Forever.
If either t1 or t2 has no value, this method returns null.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft