Class RateCollection
Le nom : Aspose.Tasks Assemblée: Aspose.Tasks.dll (25.4.0)
Esso rappresenta una collezione che contiene oggetti Aspose.Tasks.Rate.
public class RateCollection : IDictionary<ratetype, ratebydatecollection="">, ICollection<keyvaluepair<ratetype, ratebydatecollection="">>, IEnumerable<keyvaluepair<ratetype, ratebydatecollection="">>, IEnumerable
Inheritance
Implements
IDictionary<ratetype, ratebydatecollection=""> , ICollection<keyvaluepair<ratetype, ratebydatecollection="">> , IEnumerable<keyvaluepair<ratetype, ratebydatecollection="">> , IEnumerable
I membri ereditari
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Properties
Count
Riceve il numero di elementi contenuti nella RateCollection.
public int Count { get; }
Valore di proprietà
IsReadOnly
Riceve un valore indicando se questa raccolta è letta solo.
public bool IsReadOnly { get; }
Valore di proprietà
ParentResource
Ottieni l’oggetto parentale Aspose.Tasks.Resource per questa collezione.
public Resource ParentResource { get; }
Valore di proprietà
Ceci[RateType]
Ritorna o metti l’elemento all’indice specificato.
public RateByDateCollection this[RateType key] { get; set; }
Valore di proprietà
Methods
Add(DateTime)
Aggiungi un nuovo esempio Aspose.Tasks.Rate a questa collezione.
public Rate Add(DateTime ratesFrom)
Parameters
ratesFrom
DateTime
La data in cui entrerà in vigore il nuovo tasso.
Returns
Aggiungi Aspose.Tasks.Rate per esempio.
Add(DateTime, RateType)
Aggiungi un nuovo esempio Aspose.Tasks.Rate a questa collezione.
public Rate Add(DateTime ratesFrom, RateType type)
Parameters
ratesFrom
DateTime
La data in cui entrerà in vigore il nuovo tasso.
type
RateType
La tabella dei tassi da aggiungere.
Returns
Aggiungi Aspose.Tasks.Rate per esempio.
GetEnumerator()
Ritorna un elenco per questa collezione.
public IEnumerator GetEnumerator()
Returns
Un elenco per questa collezione.
Remove(Rate)
Rimuovere l’indice Rate da questa collezione.
public bool Remove(Rate item)
Parameters
item
Rate
L’oggetto da rimuovere.
Returns
vero se il Tasso specificato è stato rimosso con successo; altrimenti, falso.
ToList()
Converti l’oggetto Aspose.Tasks.RateCollection in un elenco di oggetti Aspose.Tasks.Rate.
public List<rate> ToList()
Returns
Elenco degli oggetti Aspose.Tasks.Rate.
ToList(RateType)
Converte l’oggetto Aspose.Tasks.RateCollection in un elenco di oggetti Aspose.Tasks.Rate filtrati dal tipo specificato Aspose.Tasks.RateType.
public List<rate> ToList(RateType type)
Parameters
type
RateType
Il tipo per filtrare.
Returns
un elenco di Aspose.Tasks.Rate oggetti.</keyvaluepair<ratetype,></keyvaluepair<ratetype,></ratetype,></keyvaluepair<ratetype,></keyvaluepair<ratetype,></ratetype,>