SelectedDatesCollection::Count Property
.NET Framework (current version)
Gets the number of System::DateTime objects in the SelectedDatesCollection collection.
Assembly: System.Web (in System.Web.dll)
Property Value
Type: System::Int32The number of System::DateTime objects in the SelectedDatesCollection.
Implements
ICollection::CountUse this property to determine the number of dates in the SelectedDatesCollection collection. The Count property is often used when iterating through the collection to determine the upper bound.
The following code example demonstrates how to use to the Count property to determine the number of dates in the SelectedDatesCollection collection. Note that the SelectedDates property of the Calendar control is an instance of the SelectedDatesCollection class.
.NET Framework
Available since 1.1
Available since 1.1
Show: