Class CalendarExceptionCollection
Namespace: Aspose.Tasks
Assembly: Aspose.Tasks.dll (25.2.0)
Đại diện cho một tập hợp các đối tượng Aspose.Tasks.CalendarException.
public class CalendarExceptionCollection : IList<calendarexception>, ICollection<calendarexception>, IEnumerable<calendarexception>, IEnumerable
Kế thừa
object ← CalendarExceptionCollection
Thực hiện
IList<calendarexception>, ICollection<calendarexception>, IEnumerable<calendarexception>, IEnumerable
Các thành viên kế thừa
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Thuộc tính
Count
Lấy số lượng đối tượng chứa trong đối tượng Aspose.Tasks.CalendarExceptionCollection này.
public int Count { get; }
Giá trị thuộc tính
ParentCalendar
Lấy lịch cha cho đối tượng này.
public Calendar ParentCalendar { get; }
Giá trị thuộc tính
this[int]
Trả về phần tử tại chỉ số được chỉ định.
public CalendarException this[int index] { get; set; }
Giá trị thuộc tính
Phương thức
Add(CalendarException)
Thêm một thể hiện CalendarException vào đối tượng tập hợp này.
public void Add(CalendarException item)
Tham số
item
CalendarException
Mục cần thêm.
AddRange(IEnumerable<calendarexception>)
Thêm một khoảng ngoại lệ vào danh sách nội bộ.
public void AddRange(IEnumerable<calendarexception> exceptionList)
Tham số
exceptionList
IEnumerable<CalendarException>
Khoảng ngoại lệ cần thêm.
Clear()
Xóa tất cả các mục khỏi Aspose.Tasks.CalendarExceptionCollection.
public void Clear()
GetEnumerator()
Trả về một bộ đếm cho tập hợp này.
public IEnumerator<calendarexception> GetEnumerator()
Trả về
IEnumerator<CalendarException>
một bộ đếm cho tập hợp này.
Remove(CalendarException)
Xóa thể hiện Aspose.Tasks.CalendarException khỏi tập hợp này.
public bool Remove(CalendarException item)
Tham số
item
CalendarException
Mục cần xóa.
Trả về
true nếu ngoại lệ được chỉ định đã được xóa thành công.
ToList()
Chuyển đổi đối tượng CalendarExceptionCollection thành danh sách các đối tượng Aspose.Tasks.CalendarException.
public List<calendarexception> ToList()
Trả về
Danh sách các đối tượng Aspose.Tasks.CalendarException.