Duration.Subtraction(Duration, Duration) Operator
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Subtracts the value of one instance of Duration from another.
public:
static System::Windows::Duration operator -(System::Windows::Duration t1, System::Windows::Duration t2);
public static System.Windows.Duration operator - (System.Windows.Duration t1, System.Windows.Duration t2);
static member ( - ) : System.Windows.Duration * System.Windows.Duration -> System.Windows.Duration
Public Shared Operator - (t1 As Duration, t2 As Duration) As Duration
Parameters
Returns
If both instances of Duration have values, an instance of Duration that represents the value of t1
minus t2
. If t1
has a value of Forever and t2
has a value of TimeSpan, this method returns Forever. Otherwise this method returns null
.
Remarks
The following calculations all return a value of Automatic.
The equivalent method for this operator is Duration.Subtract(Duration)
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru