Export (0) Print
Expand All

Duration.op_Addition Method

Adds two instances of Duration together.

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

public static Duration operator + (
	Duration t1,
	Duration t2
)
You cannot use methods in XAML.

Parameters

t1

The first instance of Duration to add.

t2

The second instance of Duration to add.

Return Value

If both instances of Duration 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 a null reference (Nothing in Visual Basic).

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2015 Microsoft