Search
DateCollection Members
Constructors Properties Methods
 


Represents a strongly-typed sorted collection of DateTime objects.

The following tables list the members exposed by the DateCollection type.

 Public Constructors

  Name Description

DateCollection

Initializes a new instance of the DateCollection class.

 Public Properties

  Name Description

Count

Gets the number of elements in the collection.

IsReadOnly

Gets a value indicating whether this instance is read-only.

Item

Gets or sets the DateTime located at the specified position within this collection.

 Public Methods

  Name Description

Add

Adds the specified DateTime object to this collection.

Clear

Removes all elements from the collection.

Contains

Determines whether this collection contains the specified DateTime instance.

CopyTo

Overloaded. Copies the elements of this DateCollection to another collection.

GetEnumerator

Returns an enumerator that can be used to iterate this list.

IndexOf

Returns the zero-based index of the first occurrence of the specified DateTime object in this collection.

Insert

Inserts a DateTime object into the collection at the specified index.

Remove

Removes the first occurrence of a DateTime object from this collection.

RemoveAt

Removes the element at the specified index of this collection.

 See Also