Class CalendarException

Class CalendarException

Namespace: Aspose.Tasks
Assembly: Aspose.Tasks.dll (25.2.0)

カレンダーにおける例外的な時間帯を表します。

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

継承

objectCalendarException

継承されたメンバー

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

コンストラクター

CalendarException()

Aspose.Tasks.CalendarException クラスの新しいインスタンスを初期化します。

public CalendarException()

プロパティ

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 オブジェクトを取得または設定します。 平日に働く時間を定義する作業時間のコレクションです。 少なくとも1つの作業時間が必要であり、5つを超えることはできません。

public WorkingTimeCollection WorkingTimes { get; set; }

プロパティ値

WorkingTimeCollection

メソッド

CheckException(DateTime)

指定された System.DateTime 構造体のインスタンスが例外日である場合は true を返します。

public bool CheckException(DateTime dt)

パラメーター

dt DateTime

指定された System.DateTime 構造体のインスタンス。

戻り値

bool

System.DateTime 値が例外日である場合は true を返し、それ以外の場合は false を返します。

Delete()

親カレンダーの CalendarExceptionCollection オブジェクトから例外インスタンスを削除します。

public void Delete()

GetExceptionDates()

カレンダー例外が適用される日付を返します。

public IEnumerable<datetime> GetExceptionDates()

戻り値

IEnumerable<DateTime&gt;

カレンダー例外が適用される例外日付のコレクションを返します。

GetWorkingTime()

カレンダー例外の作業時間を返します。

public TimeSpan GetWorkingTime()

戻り値

TimeSpan

このカレンダー例外の作業時間を返します。

 日本語