Class CalendarExceptionCollection
Namespace: Aspose.Tasks
Assembly: Aspose.Tasks.dll (25.2.0)
แทนที่กลุ่มของวัตถุ Aspose.Tasks.CalendarException
public class CalendarExceptionCollection : IList<calendarexception>, ICollection<calendarexception>, IEnumerable<calendarexception>, IEnumerable
การสืบทอด
object ← CalendarExceptionCollection
การนำไปใช้
IList<calendarexception>, ICollection<calendarexception>, IEnumerable<calendarexception>, IEnumerable
สมาชิกที่สืบทอด
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
คุณสมบัติ
Count
ได้รับจำนวนวัตถุที่มีอยู่ในวัตถุ Aspose.Tasks.CalendarExceptionCollection นี้
public int Count { get; }
ค่า Property
ParentCalendar
ได้รับปฏิทินหลักสำหรับวัตถุนี้
public Calendar ParentCalendar { get; }
ค่า Property
this[int]
คืนค่าองค์ประกอบที่ดัชนีที่ระบุ
public CalendarException this[int index] { get; set; }
ค่า Property
วิธีการ
Add(CalendarException)
เพิ่มตัวอย่าง CalendarException ลงในวัตถุคอลเลกชันนี้
public void Add(CalendarException item)
พารามิเตอร์
item
CalendarException
รายการที่ต้องการเพิ่ม
AddRange(IEnumerable<calendarexception>)
เพิ่มช่วงของข้อยกเว้นลงในรายการภายใน
public void AddRange(IEnumerable<calendarexception> exceptionList)
พารามิเตอร์
exceptionList
IEnumerable<CalendarException>
ช่วงของข้อยกเว้นที่ต้องการเพิ่ม
Clear()
ลบรายการทั้งหมดออกจาก Aspose.Tasks.CalendarExceptionCollection
public void Clear()
GetEnumerator()
คืนค่า enumerator สำหรับคอลเลกชันนี้
public IEnumerator<calendarexception> GetEnumerator()
คืนค่า
IEnumerator<CalendarException>
enumerator สำหรับคอลเลกชันนี้
Remove(CalendarException)
ลบตัวอย่าง Aspose.Tasks.CalendarException ออกจากคอลเลกชันนี้
public bool Remove(CalendarException item)
พารามิเตอร์
item
CalendarException
รายการที่ต้องการลบ
คืนค่า
true หากข้อยกเว้นที่ระบุถูกลบออกสำเร็จ
ToList()
แปลงวัตถุ CalendarExceptionCollection เป็นรายการของวัตถุ Aspose.Tasks.CalendarException
public List<calendarexception> ToList()
คืนค่า
รายการของวัตถุ Aspose.Tasks.CalendarException