Class CalendarException

Class CalendarException

名称: Aspose.Tasks 集合: Aspose.Tasks.dll (25.4.0)

代表日历中的特殊时间段。

[ClassInterface(ClassInterfaceType.AutoDual)]
public sealed class CalendarException

Inheritance

object CalendarException

继承人

object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

CalendarException()

启动 Aspose.Tasks.Calendar 例外类的新例子。

public CalendarException()

Properties

DayWorking

收到或设置一个值,表明指定日期或日期类型是否正在运行。

public bool DayWorking { get; set; }

财产价值

bool

DaysOfWeek

获取此对象的DayTypeCollection。例外有效的周日。

public DayTypeCollection DaysOfWeek { get; }

财产价值

DayTypeCollection

EnteredByOccurrences

收到或设置一个值,表明是否重复范围是通过输入多个事件来定义的。False 表示,重复范围是通过输入终止日期来定义的。

public bool EnteredByOccurrences { get; set; }

财产价值

bool

FromDate

收到或设置例外时间的开始。

public DateTime FromDate { get; set; }

财产价值

DateTime

Month

收到或设置一个月,其中一个例外重复计划。

public Month Month { get; set; }

财产价值

Month

MonthDay

收到或设定一个月的日期,其中一个例外重复计划。

public int MonthDay { get; set; }

财产价值

int

MonthItem

收到或设置一个月的项目,其中一个例外重复是计划的。

public MonthItemType MonthItem { get; set; }

财产价值

MonthItemType

MonthPosition

收到或设置一个月项目的位置在一个月内。

public MonthPosition MonthPosition { get; set; }

财产价值

MonthPosition

Name

收到或设置例外的名称。

public string Name { get; set; }

财产价值

string

Occurrences

收到或设置日历例外有效的事件数量。

public int Occurrences { get; set; }

财产价值

int

ParentCalendar

获取此对象的母日历。

public Calendar ParentCalendar { get; }

财产价值

Calendar

Period

收到或设置例外的重复期限。

public int Period { get; set; }

财产价值

int

ToDate

接收或设置例外时间的结束。

public DateTime ToDate { get; set; }

财产价值

DateTime

Type

接收或设置例外类型。

public CalendarExceptionType Type { get; set; }

财产价值

CalendarExceptionType

WorkingTimes

接收或设置 WorkingTimeCollection 对象。收集工作时间,定义工作时间在周日。至少一个工作时间必须存在,不能超过五个工作时间。

public WorkingTimeCollection WorkingTimes { get; set; }

财产价值

WorkingTimeCollection

Methods

CheckException(DateTime)

如果 System.DateTime 结构的指定例子是例外日。

public bool CheckException(DateTime dt)

Parameters

dt DateTime

指定的例子系统.DateTime结构。

Returns

bool

返回真相 如果 System.DateTime 值是例外日; 否则,假。

Delete()

将例外从父母日历 CalendarExceptionCollection 对象中删除。

public void Delete()

GetExceptionDates()

返回日期,日历例外适用。

public IEnumerable<datetime> GetExceptionDates()

Returns

IEnumerable < DateTime >

返回例外收集日期,日期例外适用。

GetWorkingTime()

返回工作时间为日历例外。

public TimeSpan GetWorkingTime()

Returns

TimeSpan

返回工作时间为此日历例外。

 中文