Class WorkingTime
이름 공간 : Aspose.Tasks 모임: Aspose.Tasks.dll (25.4.0)
일주일 동안 일하는 시간을 나타냅니다.
[ClassInterface(ClassInterfaceType.AutoDual)]
public class WorkingTime
Inheritance
상속 회원들
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
WorkingTime(날짜 시간, 날짜 시간)
Aspose.Tasks.WorkingTime 클래스의 새로운 사례를 지정된 시작 및 마무리 시간과 간격으로 시작합니다.
public WorkingTime(DateTime fromTime, DateTime toTime)
Parameters
fromTime
DateTime
Interval 시작 시간
toTime
DateTime
Interval End 시간
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
때 toTime 덜 동일한 toTime 논쟁또는 Time와 toTime 사이의 간격이 24 시간 이상인 경우.
WorkingTime(이트, 이트)
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
때 toTime 덜 동일한 toTime 논쟁또는 Time와 toTime 사이의 간격이 24 시간 이상인 경우.
Properties
From
그것은 작업 시간의 시작을 얻습니다.
public DateTime From { get; }
부동산 가치
To
일하는 시간의 끝을 얻는다.
public DateTime To { get; }
부동산 가치
Methods
Equals(객체)
물건이 동일하다는 것을 확인하십시오.
public override bool Equals(object obj)
Parameters
obj
object
비교할 수 있는 두 번째 대상입니다.
Returns
사실은 물건이 동일한 경우, 거짓은 그렇지 않다.
GetHashCode()
Aspose.Tasks.WorkingTime 클래스의 예를 들어 해시 코드 값을 반환합니다.
public override int GetHashCode()
Returns
이 개체에 대한 해시 코드 값을 반환합니다.