Class CalendarExceptionCollection

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

การสืบทอด

objectCalendarExceptionCollection

การนำไปใช้

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

int

ParentCalendar

ได้รับปฏิทินหลักสำหรับวัตถุนี้

public Calendar ParentCalendar { get; }

ค่า Property

Calendar

this[int]

คืนค่าองค์ประกอบที่ดัชนีที่ระบุ

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

ค่า Property

CalendarException

วิธีการ

Add(CalendarException)

เพิ่มตัวอย่าง CalendarException ลงในวัตถุคอลเลกชันนี้

public void Add(CalendarException item)

พารามิเตอร์

item CalendarException

รายการที่ต้องการเพิ่ม

AddRange(IEnumerable<calendarexception>)

เพิ่มช่วงของข้อยกเว้นลงในรายการภายใน

public void AddRange(IEnumerable<calendarexception> exceptionList)

พารามิเตอร์

exceptionList IEnumerable<CalendarException&gt;

ช่วงของข้อยกเว้นที่ต้องการเพิ่ม

Clear()

ลบรายการทั้งหมดออกจาก Aspose.Tasks.CalendarExceptionCollection

public void Clear()

GetEnumerator()

คืนค่า enumerator สำหรับคอลเลกชันนี้

public IEnumerator<calendarexception> GetEnumerator()

คืนค่า

IEnumerator<CalendarException&gt;

enumerator สำหรับคอลเลกชันนี้

Remove(CalendarException)

ลบตัวอย่าง Aspose.Tasks.CalendarException ออกจากคอลเลกชันนี้

public bool Remove(CalendarException item)

พารามิเตอร์

item CalendarException

รายการที่ต้องการลบ

คืนค่า

bool

true หากข้อยกเว้นที่ระบุถูกลบออกสำเร็จ

ToList()

แปลงวัตถุ CalendarExceptionCollection เป็นรายการของวัตถุ Aspose.Tasks.CalendarException

public List<calendarexception> ToList()

คืนค่า

List<CalendarException&gt;

รายการของวัตถุ Aspose.Tasks.CalendarException

 แบบไทย