Version

Exists(DateTime,Boolean) Method

Tests if a given day falls within any of the date ranges and optionally, if the day is selectable. It is possible for a day to be within a date range but not selectable since the day of week, month, etc. is disabled.
Syntax
'Declaration
 
Public Overloads Function Exists( _
   ByVal date As Date, _
   ByVal ensureSelected As Boolean _
) As Boolean
public bool Exists( 
   DateTime date,
   bool ensureSelected
)

Parameters

date
DateTime to check.
ensureSelected
Boolean indicating whether to check if the item is selectable.

Return Value

true if the date exists in the collection; otherwise false.
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