Version

AddRange(DateRange,Boolean) Method

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

Parameters

range
The range of dates to add to the collection
allowPartialSelection
True if as many dates up to the maximum allowable dates 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 maximum allowable dates.
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