Scheduler for WinRT
ContainsTime Method


A checked DateTime.
Gets a value indicating whether the specified DateTime belongs to the time range represented by the VisualInterval.
Syntax
'Declaration
 
Public Function ContainsTime( _
   ByVal time As Date _
) As Boolean
'Usage
 
Dim instance As VisualInterval
Dim time As Date
Dim value As Boolean
 
value = instance.ContainsTime(time)
public bool ContainsTime( 
   DateTime time
)

Parameters

time
A checked DateTime.

Return Value

This method returns true if the specified DateTime belongs to the time range represented by the VisualInterval; otherwise, false.
Remarks
A DateTime is considered as belonging to a VisualInterval if the following condition is satisfied:

StartTime <= DateTime and DateTime > EndTime

Note that the bottom boundary of the interval is exclusive, that is DateTime = EndTime is considered as not belonging to the interval.

Requirements

Target Platforms: 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

Reference

VisualInterval Class
VisualInterval Members

 

 


Copyright (c) GrapeCity, inc. All rights reserved.