Class WorkUnit
Class WorkUnit
Namespace: Aspose.Tasks
Assembly: Aspose.Tasks.dll (25.2.0)
Represents working hours.
[ClassInterface(ClassInterfaceType.AutoDual)]
public class WorkUnit
Inheritance
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
WorkUnit(DateTime, DateTime)
Initializes a new instance of the Aspose.Tasks.WorkUnit class. Creates new WorkUnit object with the specified From and To dates.
public WorkUnit(DateTime from, DateTime to)
Parameters
from
DateTime
Start date of working hours.
to
DateTime
Finish date of working hours.
Properties
From
Gets or sets the From date.
public DateTime From { get; set; }
Property Value
To
Gets or sets the To date.
public DateTime To { get; set; }
Property Value
WorkingHours
Gets or sets the duration of working hours.
public TimeSpan WorkingHours { get; set; }