SelectedDatesCollection Class
Encapsulates a collection of System::DateTime objects that represent the selected dates in a Calendar control. This class cannot be inherited.
Assembly: System.Web (in System.Web.dll)
The SelectedDatesCollection type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | SelectedDatesCollection | Initializes a new instance of the SelectedDatesCollection class with the specified date list. |
| Name | Description | |
|---|---|---|
![]() | Count | Gets the number of System::DateTime objects in the SelectedDatesCollection collection. |
![]() | IsReadOnly | Gets a value indicating whether the SelectedDatesCollection collection is read-only. |
![]() | IsSynchronized | Gets a value indicating whether access to the SelectedDatesCollection collection is synchronized (thread safe). |
![]() | Item | Gets a System::DateTime object at the specified index in the SelectedDatesCollection collection. |
![]() | SyncRoot | Gets the object that can be used to synchronize access to the SelectedDatesCollection collection. |
| Name | Description | |
|---|---|---|
![]() | Add | Appends the specified System::DateTime object to the end of the SelectedDatesCollection collection. |
![]() | Clear | Removes all System::DateTime objects from the collection. |
![]() | Contains | Returns a value indicating whether the SelectedDatesCollection collection contains the specified System::DateTime object. |
![]() | CopyTo | Copies the items from the SelectedDatesCollection collection to the specified System::Array, starting with the specified index. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetEnumerator | Returns an System.Collections::IEnumerator-implemented object that contains all System::DateTime objects within the SelectedDatesCollection collection. |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Remove | Removes the specified System::DateTime object from the SelectedDatesCollection collection. |
![]() | SelectRange | Adds the specified range of dates to the SelectedDatesCollection collection. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() | AsParallel | Enables parallelization of a query. (Defined by ParallelEnumerable.) |
![]() | AsQueryable | Converts an IEnumerable to an IQueryable. (Defined by Queryable.) |
![]() | Cast<TResult> | Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.) |
![]() | OfType<TResult> | Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.) |
Use this class to programmatically manage a collection of System::DateTime objects that represent the selected dates in a Calendar control. This class is commonly used to add or remove dates from the collection.
This collection stores only whole dates. The time portion of each System::DateTime is removed. The dates are stored in ascending order. If there are duplicate dates, only one date is stored in the collection.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.



