Class RateCollection
名称: Aspose.Tasks 集合: Aspose.Tasks.dll (25.4.0)
代表包含 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
继承人
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Properties
Count
获取在 RateCollection 中包含的元素数量。
public int Count { get; }
财产价值
IsReadOnly
收到一个值,表明这个收藏是否仅被阅读。
public bool IsReadOnly { get; }
财产价值
ParentResource
获取本收藏的父母 Aspose.Tasks.Resource 对象。
public Resource ParentResource { get; }
财产价值
这个[RateType]
返回或将元素置于指定的指数。
public RateByDateCollection this[RateType key] { get; set; }
财产价值
Methods
Add(DateTime)
添加一个新的 Aspose.Tasks.Rate 例子到此收藏。
public Rate Add(DateTime ratesFrom)
Parameters
ratesFrom
DateTime
即新利率生效之日。
Returns
添加 Aspose.Tasks.Rate 例子。
Add(日期, RateType)
添加一个新的 Aspose.Tasks.Rate 例子到此收藏。
public Rate Add(DateTime ratesFrom, RateType type)
Parameters
ratesFrom
DateTime
即新利率生效之日。
type
RateType
要加入的利率表。
Returns
添加 Aspose.Tasks.Rate 例子。
GetEnumerator()
返回此收藏的列表。
public IEnumerator GetEnumerator()
Returns
为此收藏的列表。
Remove(Rate)
从此收藏中删除利率例子。
public bool Remove(Rate item)
Parameters
item
Rate
要去除的物品。
Returns
如果指定的利率被成功删除,否则是假的。
ToList()
将 Aspose.Tasks.RateCollection 对象转换为 Aspose.Tasks.Rate 对象列表。
public List<rate> ToList()
Returns
列出 Aspose.Tasks.Rate 物品。
ToList(RateType)
将 Aspose.Tasks.RateCollection 对象转换为由指定的 Aspose.Tasks.RateType 类型过滤的 Aspose.Tasks.Rate 对象列表。
public List<rate> ToList(RateType type)
Parameters
type
RateType
要过滤的类型。
Returns
列出 Aspose.Tasks.Rate 物品。</keyvaluepair<ratetype,></keyvaluepair<ratetype,></ratetype,></keyvaluepair<ratetype,></keyvaluepair<ratetype,></ratetype,>