Aspose.Tasks for C++
Aspose::Tasks::RiskAnalysis::RiskPatternCollection Class Reference

Represents a collection containing the instances of the RiskPattern class. More...

#include <RiskPatternCollection.h>

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

Public Member Functions

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< RiskPatternidx_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...
 

Detailed Description

Represents a collection containing the instances of the RiskPattern class.

Member Function Documentation

void Aspose::Tasks::RiskAnalysis::RiskPatternCollection::Add ( const System::SharedPtr< RiskPattern > &  item)
override

Adds an instance of the RiskPattern class to this collection.

Parameters
iteman instance of the RiskPattern class to add to this collection.
Exceptions
ArgumentNullExceptionitem 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
itemthe 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
arraythe specified one-dimensional array to copy elements to
arrayIndexthe 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
taskthe specified task.
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
itemthe specified object to remove.
Returns
true if the specified object was successfully removed from this collection; otherwise, false.