Class TimephasedDataCollection
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ủa Aspose.Tasks.TimephasedData đối tượng.
public abstract class TimephasedDataCollection : IList<timephaseddata>, ICollection<timephaseddata>, IEnumerable<timephaseddata>, IEnumerable
Inheritance
object ← TimephasedDataCollection
Implements
IList
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()
Constructors
TimephasedDataCollection()
Bắt đầu một trường hợp mới của lớp Aspose.Tasks.TimephasedDataCollection.
protected TimephasedDataCollection()
Properties
Count
Nhận số lượng các đối tượng chứa trong Aspose.Tasks.TimephasedDataCollection đối tượng này.
public int Count { get; }
Giá trị bất động sản
IsReadOnly
Nó nhận được một giá trị cho thấy liệu System.Collections.Generic.ICollection`1 chỉ được đọc.
public bool IsReadOnly { get; }
Giá trị bất động sản
cái này[int]
Quay lại mục vào chỉ số cụ thể.The set accessor is not supported.tài sản để thiết lập dữ liệu thời gian.
public TimephasedData this[int index] { get; set; }
Giá trị bất động sản
Methods
Add(TimephasedData)
Thêm Aspose.Tasks.TimephasedData ví dụ cho đối tượng thu thập này.
public void Add(TimephasedData item)
Parameters
item
TimephasedData
mục để thêm.
Exceptions
nếu parameter td là null.
AddRange(Tính năng: Timephaseddata>)
Thêm một bộ sưu tập các ví dụ Aspose.Tasks.TimephasedData vào đối tượng bộ sưu tập này.
public void AddRange(IEnumerable<timephaseddata> timephasedCollection)
Parameters
timephasedCollection
IEnumerable
<
TimephasedData
>
Một bộ sưu tập Aspose.Tasks.TimephasedData đối tượng để thêm.
Clear()
Xóa tất cả các mục từ Aspose.Tasks.TimephasedDataCollection.
public void Clear()
Contains(TimephasedData)
Nó xác định liệu Aspose.Tasks.TimephasedDataCollection có chứa một giá trị cụ thể hay không.
public bool Contains(TimephasedData item)
Parameters
item
TimephasedData
Đối tượng được đặt trong bộ sưu tập.
Returns
đúng nếu item’ được tìm thấy trong bộ sưu tập; nếu không, giả.
CopyTo(TimephasedData[ ], int)
Sao chép các yếu tố của Aspose.Tasks.TimephasedDataCollection vào một System.Array,Bắt đầu với một chỉ số System.Array cụ thể.
public void CopyTo(TimephasedData[] array, int arrayIndex)
Parameters
array
TimephasedData
[ ]
Một chiều System.Array là điểm đến của các yếu tố được sao chép từ Aspose.Tasks.TimephasedDataCollection.Hệ thống.Array phải có indexing dựa trên zero.
arrayIndex
int
Chỉ số dựa trên zero trong array’ nơi sao chép bắt đầu.
Exceptions
array’ is null.
arrayIndex’ is less than 0.
Số lượng các yếu tố trong nguồn Aspose.Tasks.TimephasedDataCollectionis lớn hơn không gian có sẵn từ arrayIndex’ đến cuối đích
array'.
GetEnumerator()
Quay lại một danh sách cho bộ sưu tập này.
public IEnumerator<timephaseddata> GetEnumerator()
Returns
IEnumerator < TimephasedData >
Một danh sách cho bộ sưu tập này.
Remove(TimephasedData)
Xóa Aspose.Tasks.TimephasedData instance từ đối tượng thu thập này.
public bool Remove(TimephasedData item)
Parameters
item
TimephasedData
mục để loại bỏ.
Returns
đúng nếu item’ đã được loại bỏ thành công từ Aspose.Tasks.TimephasedDataCollection; nếu không, false.This method also returns false if
item’ is not found in the Aspose.Tasks.TimephasedDataCollection.
SelectBetweenStartAndFinish(Thời gian: DateTime, DateTime, DateTime)
Chọn tất cả các giai đoạn thời gian giữa startTime’ và
finishTime'.
public IList<timephaseddata> SelectBetweenStartAndFinish(TimephasedDataType timephasedDataType, DateTime startTime, DateTime finishTime)
Parameters
timephasedDataType
TimephasedDataType
Loại thời gian giai đoạn để chọn.
startTime
DateTime
Bắt đầu khoảng thời gian.
finishTime
DateTime
Kết thúc khoảng thời gian
Returns
IList < TimephasedData >
Trả lại một ví dụ danh sách mới của Aspose.Tasks.TimephasedDataCollection dữ liệu được đặt hàng bởi tài sản Start.
ToList()
Chuyển đổi Aspose.Tasks.TimephasedDataCollection đối tượng sang một danh sách Aspose.Tasks.TimephasedData đối tượng.
public List<timephaseddata> ToList()
Returns
List < TimephasedData >
Danh sách Aspose.Tasks.TimephasedData đối tượng.