Class WorkingTime

Class WorkingTime

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

1週間の労働時間を表します。

[ClassInterface(ClassInterfaceType.AutoDual)]
public class WorkingTime

Inheritance

object WorkingTime

相続人

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

Constructors

WorkingTime(デートタイム、DateTime)

Aspose.Tasks.WorkingTime クラスの新しい例を、指定されたスタートと終了時間の間隔で開始します。

public WorkingTime(DateTime fromTime, DateTime toTime)

Parameters

fromTime DateTime

インターバル スタート時間

toTime DateTime

インターバル 終了時間

WorkingTime(タイムスパン、タイムスパン)

Aspose.Tasks.WorkingTime クラスの新しい例を、指定されたスタートと終了時間の間隔項目で開始します。

public WorkingTime(TimeSpan fromTime, TimeSpan toTime)

Parameters

fromTime TimeSpan

インターバルのスタートタイムは System.TimeSpan 構造によって表示されます。

toTime TimeSpan

インターバルの終了時間は System.TimeSpan 構造によって表されます。

Examples

WorkingTime ctor の過剰負荷は、TimeSpans を使用してインターバルの開始と終了を開始するために使用することができます。var wt = new WorkingTime(new TimeSpan(9, 0, 0), new TimeSpan(18, 0, 0));

Exceptions

ArgumentException

toTime より少ない場合 toTime に等しい議論・時間と時間の間の間隔が24時間を超える場合

WorkingTime(int、 int)

Aspose.Tasks.WorkingTime クラスの新しい例を、指定されたスタートと終了時間の間隔項目で開始します。

public WorkingTime(int fromHours, int toHours)

Parameters

fromHours int

間隔の開始時間は、全時間数(0〜24時間)で表されます。

toHours int

期間の終了時間は、全時間数(0〜24時間)で表されます。

Examples

WorkingTime ctor の過剰負荷は、全時間で間隔の開始と終了を開始するために使用することができます。var wt = new WorkingTime(9, 13);

Exceptions

ArgumentException

toTime より少ない場合 toTime に等しい議論・時間と時間の間の間隔が24時間を超える場合

Properties

From

仕事の時間の始まりです。

public DateTime From { get; }

不動産価値

DateTime

To

仕事時間の終わりを迎える。

public DateTime To { get; }

不動産価値

DateTime

Methods

Equals(対象)

物体が平等であることを確認します。

public override bool Equals(object obj)

Parameters

obj object

二つ目は、比較すること。

Returns

bool

物体が平等である場合、偽物が違う場合。

GetHashCode()

Aspose.Tasks.WorkingTime クラスのハッシュコードの値を返します。

public override int GetHashCode()

Returns

int

このオブジェクトにハッシュコードの値を返します。

 日本語