Aspose.Tasks for C++
Aspose::Tasks::WorkUnit Class Reference

Represents working hours. More...

#include <WorkUnit.h>

Inherits System::Object.

Public Member Functions

System::DateTime get_From () const
 Gets the From date. More...
 
void set_From (System::DateTime value)
 Sets the From date. More...
 
System::DateTime get_To () const
 Gets the To date. More...
 
void set_To (System::DateTime value)
 Sets the To date. More...
 
System::TimeSpan get_WorkingHours () const
 Gets the duration of working hours. More...
 
void set_WorkingHours (System::TimeSpan value)
 Sets the duration of working hours. More...
 
 WorkUnit (System::DateTime from, System::DateTime to)
 Initializes a new instance of the WorkUnit class. Creates new WorkUnit object with the specified From and To dates. More...
 

Detailed Description

Represents working hours.

Constructor & Destructor Documentation

◆ WorkUnit()

Aspose::Tasks::WorkUnit::WorkUnit ( System::DateTime  from,
System::DateTime  to 
)

Initializes a new instance of the WorkUnit class. Creates new WorkUnit object with the specified From and To dates.

Parameters
fromStart date of working hours.
toFinish date of working hours.

Member Function Documentation

◆ get_From()

System::DateTime Aspose::Tasks::WorkUnit::get_From ( ) const

Gets the From date.

◆ get_To()

System::DateTime Aspose::Tasks::WorkUnit::get_To ( ) const

Gets the To date.

◆ get_WorkingHours()

System::TimeSpan Aspose::Tasks::WorkUnit::get_WorkingHours ( ) const

Gets the duration of working hours.

◆ set_From()

void Aspose::Tasks::WorkUnit::set_From ( System::DateTime  value)

Sets the From date.

◆ set_To()

void Aspose::Tasks::WorkUnit::set_To ( System::DateTime  value)

Sets the To date.

◆ set_WorkingHours()

void Aspose::Tasks::WorkUnit::set_WorkingHours ( System::TimeSpan  value)

Sets the duration of working hours.