Duration.Addition Operator
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Adds two Duration values together.
Namespace: System.Windows
Assembly: System.Windows (in System.Windows.dll)
Syntax
'Declaration
Public Shared Operator + ( _
t1 As Duration, _
t2 As Duration _
) As Duration
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 nulla null reference (Nothing in Visual Basic).
Version Information
Silverlight
Supported in: 5, 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.