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

Represents working hours. More...

#include <WorkUnit.h>

Inherits 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

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

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

Gets the From date.

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

Gets the To date.

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

Gets the duration of working hours.

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

Sets the From date.

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

Sets the To date.

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

Sets the duration of working hours.