SelectedDatesCollection::Count Property

 

Gets the number of System::DateTime objects in the SelectedDatesCollection collection.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public:
property int Count {
	virtual int get() sealed;
}

Property Value

Type: System::Int32

The number of System::DateTime objects in the SelectedDatesCollection.

Use 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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: