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

Represents a period when a resource is available. More...

#include <AvailabilityPeriod.h>

Inherits System::Object.

Public Member Functions

System::DateTime get_AvailableFrom () const
 Gets the date when a resource becomes available for the specified period. More...
 
void set_AvailableFrom (System::DateTime value)
 Sets the date when a resource becomes available for the specified period. More...
 
System::DateTime get_AvailableTo () const
 Gets the last date when a resource is available for the specified period. More...
 
void set_AvailableTo (System::DateTime value)
 Sets the last date when a resource is available for the specified period. More...
 
double get_AvailableUnits () const
 Gets the percentage of a resource which is available during the specified period. More...
 
void set_AvailableUnits (double value)
 Sets the percentage of a resource which is available during the specified period. More...
 
 AvailabilityPeriod ()
 Initializes a new instance of the AvailabilityPeriod. More...
 
 AvailabilityPeriod (System::DateTime availableFrom, System::DateTime availableTo, double availableUnits)
 Initializes a new instance of the AvailabilityPeriod with the specified date range and available units. More...
 

Detailed Description

Represents a period when a resource is available.

Constructor & Destructor Documentation

◆ AvailabilityPeriod() [1/2]

Aspose::Tasks::AvailabilityPeriod::AvailabilityPeriod ( )

Initializes a new instance of the AvailabilityPeriod.

◆ AvailabilityPeriod() [2/2]

Aspose::Tasks::AvailabilityPeriod::AvailabilityPeriod ( System::DateTime  availableFrom,
System::DateTime  availableTo,
double  availableUnits 
)

Initializes a new instance of the AvailabilityPeriod with the specified date range and available units.

Member Function Documentation

◆ get_AvailableFrom()

System::DateTime Aspose::Tasks::AvailabilityPeriod::get_AvailableFrom ( ) const

Gets the date when a resource becomes available for the specified period.

◆ get_AvailableTo()

System::DateTime Aspose::Tasks::AvailabilityPeriod::get_AvailableTo ( ) const

Gets the last date when a resource is available for the specified period.

◆ get_AvailableUnits()

double Aspose::Tasks::AvailabilityPeriod::get_AvailableUnits ( ) const

Gets the percentage of a resource which is available during the specified period.

◆ set_AvailableFrom()

void Aspose::Tasks::AvailabilityPeriod::set_AvailableFrom ( System::DateTime  value)

Sets the date when a resource becomes available for the specified period.

◆ set_AvailableTo()

void Aspose::Tasks::AvailabilityPeriod::set_AvailableTo ( System::DateTime  value)

Sets the last date when a resource is available for the specified period.

◆ set_AvailableUnits()

void Aspose::Tasks::AvailabilityPeriod::set_AvailableUnits ( double  value)

Sets the percentage of a resource which is available during the specified period.