Represents a collection of Calendar objects.
More...
#include <CalendarCollection.h>
Inherits System::Collections::Generic::IList< typename >.
Represents a collection of Calendar objects.
◆ Add() [1/2]
System::SharedPtr<Calendar> Aspose::Tasks::CalendarCollection::Add |
( |
const System::String & |
name | ) |
|
Adds a new base calendar to this CalendarCollection object and returns added calendar.
- Parameters
-
- Returns
- Added Calendar object.
- Exceptions
-
ArgumentException | Thrown when calendar name is null. |
◆ Add() [2/2]
System::SharedPtr<Calendar> Aspose::Tasks::CalendarCollection::Add |
( |
const System::String & |
name, |
|
|
const System::SharedPtr< Calendar > & |
baseCalendar |
|
) |
| |
Adds a new calendar with specified base calendar to this CalendarCollection object and returns added calendar.
- Parameters
-
name | Specified name. |
baseCalendar | Specified base calendar. |
- Returns
- Added Calendar object.
◆ get_Count()
int32_t Aspose::Tasks::CalendarCollection::get_Count |
( |
| ) |
const |
|
override |
◆ GetByName()
System::SharedPtr<Calendar> Aspose::Tasks::CalendarCollection::GetByName |
( |
const System::String & |
name | ) |
|
Returns a calendar with the specified name.
- Parameters
-
- Returns
- If found returns calendar with a specified name else returns null.
◆ GetByUid()
System::SharedPtr<Calendar> Aspose::Tasks::CalendarCollection::GetByUid |
( |
int32_t |
uid | ) |
|
Returns a calendar with the specified UID.
- Parameters
-
- Returns
- Calendar with a specified UID.
◆ GetEnumerator()
System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<Calendar> > > Aspose::Tasks::CalendarCollection::GetEnumerator |
( |
| ) |
|
|
override |
Returns an enumerator for this collection.
- Returns
- an enumerator for this collection.
◆ Remove()
bool Aspose::Tasks::CalendarCollection::Remove |
( |
const System::SharedPtr< Calendar > & |
item | ) |
|
|
override |
Removes Calendar from Project CalendarCollection.
- Parameters
-
item | The calendar to remove. |
- Exceptions
-
InvalidOperationException | Thrown when calendar cannot be removed. |
- Returns
- If removed returns true, else returns false.
◆ ToList()
System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Calendar> > > Aspose::Tasks::CalendarCollection::ToList |
( |
| ) |
|