Class RiskPatternCollection
Namespace: Aspose.Tasks.RiskAnalysis
Assembly: Aspose.Tasks.dll (25.2.0)
Represents a collection containing the instances of the Aspose.Tasks.RiskAnalysis.RiskPattern class.
public class RiskPatternCollection : IDictionary<task, riskpattern="">, ICollection<keyvaluepair<task, riskpattern="">>, IEnumerable<keyvaluepair<task, riskpattern="">>, ICollection<riskpattern>, IEnumerable<riskpattern>, IEnumerable
Inheritance
object ← RiskPatternCollection
Implements
IDictionary<task, riskpattern="">, ICollection<keyvaluepair<task, riskpattern="">>, IEnumerable<keyvaluepair<task, riskpattern="">>, ICollection<riskpattern>, IEnumerable<riskpattern>, IEnumerable
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Properties
Count
Gets the number of elements contained in this collection.
public int Count { get; }
Property Value
IsReadOnly
Gets a value indicating whether this collection is read-only; otherwise, false.
public bool IsReadOnly { get; }
Property Value
this[Task]
Gets the instance of the Aspose.Tasks.RiskAnalysis.RiskPattern class for the specified task.
public RiskPattern this[Task task] { get; }
Property Value
Methods
Add(RiskPattern)
Adds an instance of the Aspose.Tasks.RiskAnalysis.RiskPattern class to this collection.
public void Add(RiskPattern item)
Parameters
item
RiskPattern
an instance of the Aspose.Tasks.RiskAnalysis.RiskPattern class to add to this collection.
Exceptions
item
task is null.
Clear()
Removes all items from this collection.
public void Clear()
Contains(RiskPattern)
Returns true if the specified item is found in this collection; otherwise, false.
public bool Contains(RiskPattern item)
Parameters
item
RiskPattern
the specified item to find.
Returns
true if the specified item is found in this collection; otherwise, false.
CopyTo(RiskPattern[], int)
Copies the elements of this collection to the specified array, starting at the specified array index.
public void CopyTo(RiskPattern[] array, int arrayIndex)
Parameters
array
RiskPattern[]
the specified one-dimensional array to copy elements to
arrayIndex
int
the zero-based index of the specified array at which copying begins.
GetEnumerator()
Returns an enumerator for this collection.
public IEnumerator<riskpattern> GetEnumerator()
Returns
an enumerator for this collection.
Remove(RiskPattern)
Removes the first occurrence of a specific object from this collection.
public bool Remove(RiskPattern item)
Parameters
item
RiskPattern
the specified object to remove.
Returns
true if the specified object was successfully removed from this collection; otherwise, false. </riskpattern></riskpattern></keyvaluepair<task,></keyvaluepair<task,></task,></keyvaluepair<task,></keyvaluepair<task,></task,>