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.
◆ Add() [1/2]
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.
◆ Add() [2/2]
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.
◆ get_Count()
int32_t Aspose::Tasks::RateCollection::get_Count |
( |
| ) |
const |
|
override |
◆ get_IsReadOnly()
bool Aspose::Tasks::RateCollection::get_IsReadOnly |
( |
| ) |
const |
|
override |
Gets a value indicating whether this collection is read only.
◆ get_ParentResource()
System::SharedPtr<Resource> Aspose::Tasks::RateCollection::get_ParentResource |
( |
| ) |
const |
Gets the parent Resource object for this collection.
◆ idx_get()
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.
◆ idx_set()
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. |
◆ Remove()
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.
◆ ToList() [1/2]
System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Rate> > > Aspose::Tasks::RateCollection::ToList |
( |
| ) |
const |
◆ ToList() [2/2]
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.