Aspose.Tasks for C++
Aspose::Tasks::CalendarExceptionCollection Class Reference

Represents a collection of CalendarException objects. More...

#include <CalendarExceptionCollection.h>

Inherits System::Collections::Generic::IList< typename >.

Public Member Functions

System::SharedPtr< Calendarget_ParentCalendar () const
 Gets the parent calendar for this object. More...
 
int32_t get_Count () const override
 Gets the number of objects contained in this CalendarExceptionCollection object. More...
 
System::SharedPtr< CalendarExceptionidx_get (int32_t index) const override
 Returns the element at the specified index. More...
 
void idx_set (int32_t index, System::SharedPtr< CalendarException > value) override
 Returns the element at the specified index. More...
 
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< CalendarException > > > ToList ()
 Converts the CalendarExceptionCollection object to a list of CalendarException objects. More...
 
System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< CalendarException > > > GetEnumerator () override
 Returns an enumerator for this collection. More...
 
void Add (const System::SharedPtr< CalendarException > &item) override
 Adds CalendarException instance to this collection object. More...
 
void AddRange (const System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< CalendarException >>> &exceptionList)
 Adds range of exceptions to the internal list. More...
 
bool Remove (const System::SharedPtr< CalendarException > &item) override
 Removes CalendarException instance from this collection. More...
 
void Clear () override
 Removes all items from the CalendarExceptionCollection. More...
 

Detailed Description

Represents a collection of CalendarException objects.

Member Function Documentation

◆ Add()

void Aspose::Tasks::CalendarExceptionCollection::Add ( const System::SharedPtr< CalendarException > &  item)
override

Adds CalendarException instance to this collection object.

Parameters
itemThe item to add.

◆ AddRange()

void Aspose::Tasks::CalendarExceptionCollection::AddRange ( const System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< CalendarException >>> &  exceptionList)

Adds range of exceptions to the internal list.

Parameters
exceptionListRange of exceptions to add.

◆ Clear()

void Aspose::Tasks::CalendarExceptionCollection::Clear ( )
override

Removes all items from the CalendarExceptionCollection.

◆ get_Count()

int32_t Aspose::Tasks::CalendarExceptionCollection::get_Count ( ) const
override

Gets the number of objects contained in this CalendarExceptionCollection object.

◆ get_ParentCalendar()

System::SharedPtr<Calendar> Aspose::Tasks::CalendarExceptionCollection::get_ParentCalendar ( ) const

Gets the parent calendar for this object.

◆ GetEnumerator()

System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<CalendarException> > > Aspose::Tasks::CalendarExceptionCollection::GetEnumerator ( )
override

Returns an enumerator for this collection.

Returns
an enumerator for this collection.

◆ idx_get()

System::SharedPtr<CalendarException> Aspose::Tasks::CalendarExceptionCollection::idx_get ( int32_t  index) const
override

Returns the element at the specified index.

Parameters
indexThe zero-based index of the element to get.
Returns
the element at the specified index.

◆ idx_set()

void Aspose::Tasks::CalendarExceptionCollection::idx_set ( int32_t  index,
System::SharedPtr< CalendarException value 
)
override

Returns the element at the specified index.

Parameters
indexThe zero-based index of the element to get.
valuethe element at the specified index.

◆ Remove()

bool Aspose::Tasks::CalendarExceptionCollection::Remove ( const System::SharedPtr< CalendarException > &  item)
override

Removes CalendarException instance from this collection.

Parameters
itemThe item to remove.
Returns
true if the specified exception was removed successfully.

◆ ToList()

System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<CalendarException> > > Aspose::Tasks::CalendarExceptionCollection::ToList ( )

Converts the CalendarExceptionCollection object to a list of CalendarException objects.

Returns
List of CalendarException objects.