Represents a collection containing the instances of the RiskPattern class.
More...
#include <RiskPatternCollection.h>
Inherits System::Collections::Generic::ICollection< typename >.
|
int32_t | get_Count () const override |
| Gets the number of elements contained in this collection. More...
|
|
bool | get_IsReadOnly () const override |
| Gets a value indicating whether this collection is read-only; otherwise, false. More...
|
|
System::SharedPtr< RiskPattern > | idx_get (const System::SharedPtr< Task > &task) |
| Gets the instance of the RiskPattern class for the specified task. More...
|
|
void | Add (const System::SharedPtr< RiskPattern > &item) override |
| Adds an instance of the RiskPattern class to this collection. More...
|
|
void | Clear () override |
| Removes all items from this collection. More...
|
|
bool | Contains (const System::SharedPtr< RiskPattern > &item) const override |
| Returns true if the specified item is found in this collection; otherwise, false. More...
|
|
void | CopyTo (System::ArrayPtr< System::SharedPtr< RiskPattern >> array, int32_t arrayIndex) override |
| Copies the elements of this collection to the specified array, starting at the specified array index. More...
|
|
bool | Remove (const System::SharedPtr< RiskPattern > &item) override |
| Removes the first occurrence of a specific object from this collection. More...
|
|
System::SharedPtr
< System::Collections::Generic::IEnumerator
< System::SharedPtr
< RiskPattern > > > | GetEnumerator () override |
| Returns an enumerator for this collection. More...
|
|
Represents a collection containing the instances of the RiskPattern class.
void Aspose::Tasks::RiskAnalysis::RiskPatternCollection::Add |
( |
const System::SharedPtr< RiskPattern > & |
item | ) |
|
|
override |
Adds an instance of the RiskPattern class to this collection.
- Parameters
-
item | an instance of the RiskPattern class to add to this collection. |
- Exceptions
-
ArgumentNullException | item task is null. |
void Aspose::Tasks::RiskAnalysis::RiskPatternCollection::Clear |
( |
| ) |
|
|
override |
Removes all items from this collection.
bool Aspose::Tasks::RiskAnalysis::RiskPatternCollection::Contains |
( |
const System::SharedPtr< RiskPattern > & |
item | ) |
const |
|
override |
Returns true if the specified item is found in this collection; otherwise, false.
- Parameters
-
item | the specified item to find. |
- Returns
- true if the specified item is found in this collection; otherwise, false.
void Aspose::Tasks::RiskAnalysis::RiskPatternCollection::CopyTo |
( |
System::ArrayPtr< System::SharedPtr< RiskPattern >> |
array, |
|
|
int32_t |
arrayIndex |
|
) |
| |
|
override |
Copies the elements of this collection to the specified array, starting at the specified array index.
- Parameters
-
array | the specified one-dimensional array to copy elements to |
arrayIndex | the zero-based index of the specified array at which copying begins. |
int32_t Aspose::Tasks::RiskAnalysis::RiskPatternCollection::get_Count |
( |
| ) |
const |
|
override |
Gets the number of elements contained in this collection.
bool Aspose::Tasks::RiskAnalysis::RiskPatternCollection::get_IsReadOnly |
( |
| ) |
const |
|
override |
Gets a value indicating whether this collection is read-only; otherwise, false.
System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<RiskPattern> > > Aspose::Tasks::RiskAnalysis::RiskPatternCollection::GetEnumerator |
( |
| ) |
|
|
override |
Returns an enumerator for this collection.
- Returns
- an enumerator for this collection.
System::SharedPtr<RiskPattern> Aspose::Tasks::RiskAnalysis::RiskPatternCollection::idx_get |
( |
const System::SharedPtr< Task > & |
task | ) |
|
Gets the instance of the RiskPattern class for the specified task.
- Parameters
-
- Returns
- the pattern for the specified task.
bool Aspose::Tasks::RiskAnalysis::RiskPatternCollection::Remove |
( |
const System::SharedPtr< RiskPattern > & |
item | ) |
|
|
override |
Removes the first occurrence of a specific object from this collection.
- Parameters
-
item | the specified object to remove. |
- Returns
- true if the specified object was successfully removed from this collection; otherwise, false.