Represents a collection which contains Rate objects.
More...
#include <RateCollection.h>
Inherits System::Collections::Generic::IDictionary< typename, typename >.
Represents a collection which contains Rate objects.
System::SharedPtr<Rate> Aspose::Tasks::RateCollection::Add |
( |
System::DateTime |
ratesFrom | ) |
|
Adds a new Rate instance to this collection.
- Parameters
-
ratesFrom | The date the new rate comes into effect. |
- Returns
- Added Rate instance.
System::SharedPtr<Rate> Aspose::Tasks::RateCollection::Add |
( |
System::DateTime |
ratesFrom, |
|
|
RateType |
type |
|
) |
| |
Adds a new Rate instance to this collection.
- Parameters
-
ratesFrom | The date the new rate comes into effect. |
type | The rate table to add into. |
- Returns
- Added Rate instance.
int32_t Aspose::Tasks::RateCollection::get_Count |
( |
| ) |
const |
|
override |
bool Aspose::Tasks::RateCollection::get_IsReadOnly |
( |
| ) |
const |
|
override |
Gets a value indicating whether this collection is read only.
System::SharedPtr<Resource> Aspose::Tasks::RateCollection::get_ParentResource |
( |
| ) |
const |
Gets the parent Resource object for this collection.
System::SharedPtr<RateByDateCollection> Aspose::Tasks::RateCollection::idx_get |
( |
const RateType & |
key | ) |
const |
|
override |
Returns the element at the specified index.
- Parameters
-
key | The zero-based index of the element to get or set. |
- Returns
- the element at the specified index.
void Aspose::Tasks::RateCollection::idx_set |
( |
const RateType & |
key, |
|
|
System::SharedPtr< RateByDateCollection > |
value |
|
) |
| |
|
override |
Sets the element at the specified index.
- Parameters
-
key | The zero-based index of the element to get or set. |
value | the element at the specified index. |
bool Aspose::Tasks::RateCollection::Remove |
( |
const System::SharedPtr< Rate > & |
item | ) |
|
Removes Rate instance from this collection.
- Parameters
-
- Returns
- true if the specified Rate was removed successfully; otherwise, false.
System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Rate> > > Aspose::Tasks::RateCollection::ToList |
( |
| ) |
const |
System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Rate> > > Aspose::Tasks::RateCollection::ToList |
( |
RateType |
type | ) |
const |
Converts the RateCollection object to a list of Rate objects filtered by specified RateType type.
- Parameters
-
type | The type to filter on. |
- Returns
- a list of Rate objects.