Share via


ExDateTime.Subtraction operator (ExDateTime, ExDateTime)

Namespace:  Microsoft.Exchange.ExchangeSystem
Assembly:  Microsoft.Exchange.Net (in Microsoft.Exchange.Net.dll)

Syntax

'Declaration
Public Shared Operator - ( _
    dt1 As ExDateTime, _
    dt2 As ExDateTime _
) As TimeSpan
'Usage
Dim dt1 As ExDateTime
Dim dt2 As ExDateTime
Dim returnValue As TimeSpan

returnValue = (dt1 - dt2)
public static TimeSpan operator -(
    ExDateTime dt1,
    ExDateTime dt2
)

Parameters

Return value

Type: System.TimeSpan

See also

Reference

ExDateTime structure

ExDateTime members

Subtraction overload

Microsoft.Exchange.ExchangeSystem namespace