RecurringTaskInfo Class

Represents the details of a recurring task in a project.
Inheritance Hierarchy
SystemObject
  Aspose.TasksRecurringTaskInfo

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

The RecurringTaskInfo type exposes the following members.

Properties
  NameDescription
Public propertyCode exampleDailyRepetitions
Gets or sets a number of repetitions for the daily recurrence pattern.
Public propertyCode exampleDailyUseWorkdays
Gets or sets a value indicating whether to use workdays for the daily recurrence pattern.
Public propertyCode exampleDuration
Gets or sets the duration for one occurrence of the recurring task.
Remarks
the instance of Duration class.
Public propertyCode exampleEndDate
Gets or sets the date for the occurrences to end.
Public propertyCode exampleMonthlyDay
Gets or sets a number of day of the monthly recurrence pattern.
Public propertyCode exampleMonthlyOrdinalDay
Gets or sets a day of the monthly recurrence pattern when using ordinal day.
Remarks
Can be one of the values of DayOfWeek enumeration.
Public propertyCode exampleMonthlyOrdinalNumber
Gets or sets an ordinal number of the monthly recurrence pattern.
Remarks
Can be one of the values of OrdinalNumber enumeration.
Public propertyCode exampleMonthlyOrdinalRepetitions
Gets or sets a number of repetitions for the monthly recurrence pattern when using ordinal day.
Public propertyCode exampleMonthlyRepetitions
Gets or sets a number of repetitions for the monthly recurrence pattern.
Public propertyCode exampleMonthlyUseOrdinalDay
Gets or sets a value indicating whether to use ordinal day for the monthly recurrence pattern.
Public propertyCode exampleOccurrences
Gets or sets a number of occurrences of the recurring task.
Public propertyCode exampleRecurrencePattern
Gets or sets a recurrence pattern of the recurring task.
Remarks
Can be one of the values of RecurrencePattern enumeration.
Public propertyCode exampleStartDate
Gets or sets the date for the occurrences to begin.
Public propertyCode exampleTask
Gets the parent task of this instance of RecurringTaskInfo class.
Public propertyCode exampleUseEndDate
Gets or sets a value indicating whether to use the end date or a number of occurrences for the recurring task.
Public propertyCode exampleWeeklyDays
Gets or sets a collection of days used in the weekly recurrence pattern.
Remarks
Public propertyCode exampleWeeklyRepetitions
Gets or sets a number of repetitions for the weekly recurrence pattern.
Public propertyCode exampleYearlyDate
Gets or sets a date for the yearly recurrence pattern.
Public propertyCode exampleYearlyOrdinalDay
Gets or sets a weekday of the yearly recurrence pattern when using ordinal day.
Remarks
Can be one of the values of DayOfWeek enumeration.
Public propertyCode exampleYearlyOrdinalMonth
Gets or sets a month of the yearly recurrence pattern when using ordinal day.
Remarks
Can be one of the values of Month enumeration.
Public propertyCode exampleYearlyOrdinalNumber
Gets or sets an ordinal number of the yearly recurrence pattern.
Remarks
Can be one of the values of OrdinalNumber enumeration.
Public propertyCode exampleYearlyUseOrdinalDay
Gets or sets a value indicating whether to use ordinal day for the yearly 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 read with recurring info of tasks.
var project = new Project(DataDir + "TestRecurringTask2016.mpp");

// read recurring information of tasks
foreach (var task in project.RootTask.SelectAllChildTasks())
{
    var info = task.RecurringInfo;
    if (info == null)
    {
        continue;
    }

    Console.WriteLine("Start Date: " + info.StartDate);
    Console.WriteLine("Duration: " + info.Duration);
    Console.WriteLine("End Date: " + info.EndDate);
    Console.WriteLine("Daily Repetitions: " + info.DailyRepetitions);
    Console.WriteLine("Daily Use Workdays: " + info.DailyUseWorkdays);
    Console.WriteLine("Monthly Day: " + info.MonthlyDay);
    Console.WriteLine("Monthly Ordinal Day: " + info.MonthlyOrdinalDay);
    Console.WriteLine("Monthly Ordinal Number: " + info.MonthlyOrdinalNumber);
    Console.WriteLine("Monthly Ordinal Repetitions: " + info.MonthlyOrdinalRepetitions);
    Console.WriteLine("Monthly Repetitions: " + info.MonthlyRepetitions);
    Console.WriteLine("Monthly Use Ordinal Day: " + info.MonthlyUseOrdinalDay);
    Console.WriteLine("Occurrences: " + info.Occurrences);
    Console.WriteLine("Recurrence Pattern: " + info.RecurrencePattern);
    Console.WriteLine("Parent Task: " + info.Task.Get(Tsk.Name));
    Console.WriteLine("Use End Date: " + info.UseEndDate);
    Console.WriteLine("Weekly Days: " + info.WeeklyDays);
    Console.WriteLine("Weekly Repetitions: " + info.WeeklyRepetitions);
    Console.WriteLine("Yearly Date: " + info.YearlyDate);
    Console.WriteLine("Yearly Ordinal Day: " + info.YearlyOrdinalDay);
    Console.WriteLine("Yearly Ordinal Month: " + info.YearlyOrdinalMonth);
    Console.WriteLine("Yearly Ordinal Number: " + info.YearlyOrdinalNumber);
    Console.WriteLine("Yearly Use Ordinal Day: " + info.YearlyUseOrdinalDay);
    Console.WriteLine();
}
See Also