Class RateCollection
Tên không gian: Aspose.Tasks Tổng hợp: Aspose.Tasks.dll (25.4.0)
Nó đại diện cho một bộ sưu tập có chứa Aspose.Tasks.Rate đối tượng.
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
Thành viên thừa kế
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Properties
Count
Nhận số lượng các yếu tố chứa trong RateCollection.
public int Count { get; }
Giá trị bất động sản
IsReadOnly
Nhận được một giá trị cho thấy liệu bộ sưu tập này chỉ được đọc hay không.
public bool IsReadOnly { get; }
Giá trị bất động sản
ParentResource
Nhận đối tượng chủ Aspose.Tasks.Resource cho bộ sưu tập này.
public Resource ParentResource { get; }
Giá trị bất động sản
cái này[RateType]
Quay lại hoặc đặt mục vào chỉ số cụ thể.
public RateByDateCollection this[RateType key] { get; set; }
Giá trị bất động sản
Methods
Add(DateTime)
Thêm một ví dụ mới Aspose.Tasks.Rate vào bộ sưu tập này.
public Rate Add(DateTime ratesFrom)
Parameters
ratesFrom
DateTime
Ngày mà tỷ lệ mới có hiệu lực.
Returns
Thêm Aspose.Tasks.Rate ví dụ.
Add(Thời gian, RateType)
Thêm một ví dụ mới Aspose.Tasks.Rate vào bộ sưu tập này.
public Rate Add(DateTime ratesFrom, RateType type)
Parameters
ratesFrom
DateTime
Ngày mà tỷ lệ mới có hiệu lực.
type
RateType
Bảng giá để thêm vào.
Returns
Thêm Aspose.Tasks.Rate ví dụ.
GetEnumerator()
Quay lại một danh sách cho bộ sưu tập này.
public IEnumerator GetEnumerator()
Returns
Một danh sách cho bộ sưu tập này.
Remove(Rate)
Xóa Tỷ lệ ví dụ từ bộ sưu tập này.
public bool Remove(Rate item)
Parameters
item
Rate
mục để loại bỏ.
Returns
đúng nếu tỷ lệ cụ thể đã được loại bỏ thành công; nếu không, giả.
ToList()
Chuyển đổi đối tượng Aspose.Tasks.RateCollection thành một danh sách đối tượng Aspose.Tasks.Rate.
public List<rate> ToList()
Returns
Danh sách các đối tượng Aspose.Tasks.Rate
ToList(RateType)
Chuyển đổi đối tượng Aspose.Tasks.RateCollection sang một danh sách các đối tượng Aspose.Tasks.Rate được lọc bởi loại Aspose.Tasks.RateType cụ thể.
public List<rate> ToList(RateType type)
Parameters
type
RateType
loại để lọc lên.
Returns
Danh sách các đối tượng Aspose.Tasks.Rate</keyvaluepair<ratetype,></keyvaluepair<ratetype,></ratetype,></keyvaluepair<ratetype,></keyvaluepair<ratetype,></ratetype,>