GemBox.Email
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    CalendarCollection Class

    Namespace:
    GemBox.Email.Calendar
    Assembly:
    GemBox.Email.dll

    Represents a collection of Calendar elements.

    • C#
    • VB.NET
    public sealed class CalendarCollection : ICollection<Calendar>, IEnumerable<Calendar>, IEnumerable
    Public NotInheritable Class CalendarCollection
        Implements ICollection(Of Calendar), IEnumerable(Of Calendar), IEnumerable
    Inheritance:
    System.Object
    CalendarCollection
    Implements
    System.Collections.Generic.ICollection<Calendar>
    System.Collections.Generic.IEnumerable<Calendar>
    System.Collections.IEnumerable

    Properties

    Count

    Gets the number of elements contained in the CalendarCollection.

    • C#
    • VB.NET
    public int Count { get; }
    Public ReadOnly Property Count As Integer
    Property Value
    System.Int32

    The number of elements contained in the CalendarCollection.

    IsReadOnly

    Gets a value indicating whether the CalendarCollection is read-only.

    • C#
    • VB.NET
    public bool IsReadOnly { get; }
    Public ReadOnly Property IsReadOnly As Boolean
    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.

    • C#
    • VB.NET
    public void Add(Calendar item)
    Public Sub Add(item As Calendar)
    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.

    • C#
    • VB.NET
    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.

    • C#
    • VB.NET
    public void Clear()
    Public Sub Clear

    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.

    • C#
    • VB.NET
    public bool Contains(Calendar item)
    Public Function Contains(item As Calendar) As Boolean
    Parameters
    item
    Calendar

    The Calendar item.

    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.

    • C#
    • VB.NET
    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.

    • C#
    • VB.NET
    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.

    • C#
    • VB.NET
    public bool Remove(Calendar item)
    Public Function Remove(item As Calendar) As Boolean
    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.

    Implements

    System.Collections.Generic.ICollection<T>
    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.