DurationHelper.Subtract method

Applies to Windows and Windows Phone

Subtracts the TimeSpan component of one Duration value from another Duration value. C# and Microsoft Visual Basic code should use the - operator or the Subtract method instead.

Syntax


public:
static Duration Subtract(
  Duration target, 
  Duration duration
)

Parameters

target

Type: Duration

The value to subtract from.

duration

Type: Duration

The value to subtract.

Return value

Type: Duration

The resulting Duration after TimeSpan component subtraction.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows::UI::Xaml

Metadata

Windows.winmd

See also

DurationHelper

 

 

Show:
© 2014 Microsoft. All rights reserved.