Class WorkingTimeCollection

Class WorkingTimeCollection

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ác đối tượng Aspose.Tasks.WorkingTimeCollection.

public class WorkingTimeCollection : IList<workingtime>, ICollection<workingtime>, IEnumerable<workingtime>, IEnumerable

Inheritance

object WorkingTimeCollection

Implements

IList , ICollection , IEnumerable , 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 đối tượng chứa trong Aspose.Tasks.WorkingTimeCollection đối tượng này.

public int Count { get; }

Giá trị bất động sản

int

cái này[int]

Quay lại yếu tố vào chỉ số cụ thể.

public WorkingTime this[int index] { get; set; }

Giá trị bất động sản

WorkingTime

Methods

Add(WorkingTime)

Thêm một ví dụ WorkingTime mới vào bộ sưu tập này.

public bool Add(WorkingTime item)

Parameters

item WorkingTime

mục để thêm.

Returns

bool

đúng nếu đối tượng WorkingTime đã được thêm thành công; nếu không, giả.

Clear()

Xóa tất cả các mục Aspose.Tasks.WorkingTime từ bộ sưu tập.

public void Clear()

Contains(WorkingTime)

Kiểm tra xem mục được chỉ định có trong danh sách.Thực hiện một tìm kiếm linear O(n)

public bool Contains(WorkingTime item)

Parameters

item WorkingTime

mục cụ thể.

Returns

bool

Đúng, nếu các yếu tố cụ thể được tìm thấy trong danh sách, giả khác.

CopyTo(WorkingTime[ ], int)

sao chép nội dung bộ sưu tập vào một Array, bắt đầu với một chỉ số cụ thể

public void CopyTo(WorkingTime[] array, int arrayIndex)

Parameters

array WorkingTime [ ]

Một dòng để sao chép.

arrayIndex int

Bắt đầu array index

GetEnumerator()

Quay lại một danh sách cho bộ sưu tập này.

public IEnumerator<workingtime> GetEnumerator()

Returns

IEnumerator < WorkingTime >

Một danh sách cho bộ sưu tập này.

Remove(WorkingTime)

Xóa ví dụ Aspose.Tasks.WorkingTime từ bộ sưu tập này.

public bool Remove(WorkingTime item)

Parameters

item WorkingTime

mục để loại bỏ.

Returns

bool

đúng nếu ví dụ WorkingTime đã được loại bỏ thành công từ bộ sưu tập này; nếu không, giả.

ToList()

Chuyển đổi đối tượng WorkingTimeCollection sang một danh sách đối tượng Aspose.Tasks.WorkingTime.

public List<workingtime> ToList()

Returns

List < WorkingTime >

Danh sách các đối tượng Aspose.Tasks.WorkingTime

 Tiếng Việt