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; }

属性值

int

ParentCalendar

获取此对象的父日历。

public Calendar ParentCalendar { get; }

属性值

Calendar

this[int]

返回指定索引处的元素。

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

属性值

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()

返回此集合的枚举器。

public IEnumerator<calendarexception> GetEnumerator()

返回

IEnumerator<CalendarException&gt;

此集合的枚举器。

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 对象的列表。

 中文