CalendarCollection Class
Represents a collection of Calendar elements.
public sealed class CalendarCollection : ICollection<Calendar>, IEnumerable<Calendar>, IEnumerable
Public NotInheritable Class CalendarCollection
Implements ICollection(Of Calendar), IEnumerable(Of Calendar), IEnumerable
- Inheritance:
- System.ObjectCalendarCollection
Implements
Properties
Count
Gets the number of elements contained in the CalendarCollection.
Property Value
- System.Int32
The number of elements contained in the CalendarCollection.
IsReadOnly
Gets a value indicating whether the CalendarCollection is read-only.
Property Value
- System.Boolean
true
if the CalendarCollection is read-only; otherwise, false
.
Methods
Add(Calendar)
Adds an element to the end of the CalendarCollection.
Parameters
item
- Calendar
The element to be added to the end of the CalendarCollection.
Add(Calendar, String)
Adds an element to the end of the CalendarCollection.
public void Add(Calendar item, string fileName)
Public Sub Add(item As Calendar, fileName As String)
Parameters
item
- Calendar
The element to be added to the end of the CalendarCollection.
fileName
- System.String
The attachment's file name.
Clear()
Removes all elements from the CalendarCollection.
Contains(Calendar)
Determines whether this CalendarCollection contains the specified Calendar item. Returns true even if item has changed and is not synchronized with this CalendarCollection.
Parameters
Returns
- System.Boolean
True
if Calendar item is found; otherwise, false
.
CopyTo(Calendar[], Int32)
Copies the entire CalendarCollection to a compatible one-dimensional array, starting at the specified index of the target array.
public void CopyTo(Calendar[] array, int arrayIndex)
Public Sub CopyTo(array As Calendar(), arrayIndex As Integer)
Parameters
array
- Calendar[]
The one-dimensional array that is the destination of the elements copied from CalendarCollection.
arrayIndex
- System.Int32
The zero-based index in array
at which copying begins.
GetEnumerator()
Returns an enumerator that iterates through the CalendarCollection.
public IEnumerator<Calendar> GetEnumerator()
Public Function GetEnumerator As IEnumerator(Of Calendar)
Returns
- System.Collections.Generic.IEnumerator<Calendar>
An enumerator for the CalendarCollection.
Remove(Calendar)
Removes the first occurrence of a specific element from the CalendarCollection.
Parameters
item
- Calendar
The element to remove from the CalendarCollection.
Returns
- System.Boolean
true
if element is successfully removed; otherwise, false
. This method also returns false
if item was not found in the CalendarCollection.