Version

AddRange Method

Adds a specified range of dates to the collection.
Syntax
'Declaration
 
Public Sub AddRange( _
   ByVal start As Date, _
   ByVal end As Date, _
   ByVal allowPartialSelection As Boolean _
) 
public void AddRange( 
   DateTime start,
   DateTime end,
   bool allowPartialSelection
)

Parameters

start
Start of the range
end
End of the range
allowPartialSelection
True if as many dates up to the MaxSelectedDates should be selected. If false and the range would cause the selection to exceed the maximum an exception will be thrown.
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeExceptionThe specified range would result in more dates being selected than allowed by the MaxSelectedDates.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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