Version

IsInRange(TimeSlot) Method

Returns whether the specified TimeSlot is within the range defined by this instance.
Syntax
'Declaration
 
Public Function IsInRange( _
   ByVal timeSlot As TimeSlot _
) As Boolean
public bool IsInRange( 
   TimeSlot timeSlot
)

Parameters

timeSlot
The TimeSlot to test.

Return Value

A boolean indicating whether the TimeSlot is considered within the range defined by this instance.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionThrown if the value of the timeSlot parameter contains a null reference.
Remarks

Because the value of the EndTime property is treated as an exclusive value, a TimeSlot whose StartTime time component is exactly equal to the value of the EndTime property of this instance is considered to be outside the range defined by this instance.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also