DailyRecurrencePattern Class

Represents the set of parameters are used to create a daily recurring task in a project.
Inheritance Hierarchy

Namespace:  Aspose.Tasks
Assembly:  Aspose.Tasks (in Aspose.Tasks.dll) Version: 21.10
Syntax
public class DailyRecurrencePattern : RecurrencePatternBase

The DailyRecurrencePattern type exposes the following members.

Constructors
  NameDescription
Public methodCode exampleDailyRecurrencePattern
Initializes a new instance of the DailyRecurrencePattern class.
Properties
  NameDescription
Public propertyCode exampleRecurrenceRange
Gets or sets the recurrence range.
(Inherited from RecurrencePatternBase.)
Public propertyCode exampleRepetition
Gets or sets the pattern of repetitions in daily recurrence pattern.
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Examples
Shows how to work with daily work repetition pattern repetitions while create recurring tasks.
var project = new Project(DataDir + "Project1.mpp");
var parameters = new RecurringTaskParameters
                     {
                         TaskName = "New recurrent task",
                         RecurrencePattern = new DailyRecurrencePattern
                                                 {
                                                     RecurrenceRange = new EndAfterRecurrenceRange
                                                                           {
                                                                               Start = new DateTime(2018, 1, 1, 8, 0, 0), OccurrenceNumber = 9
                                                                           },
                                                     Repetition = new DailyWorkRepetition { RepetitionInterval = 1 }
                                                 },
                         Duration = project.GetDuration(1, TimeUnitType.Hour)
                     };
parameters.SetCalendar(project, "Standard");

var task = project.RootTask.Children.Add(parameters);
task.Set(Tsk.Start, new DateTime(2020, 4, 27, 8, 0, 0));

// work with the project further...
// ...
See Also