Aspose.Tasks for C++
EndAfterRecurrenceRange.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="EndAfterRecurrenceRange.cs" company="Aspose Pty Ltd">
4 // Copyright (c) 2002-2024 Aspose Pty Ltd. All Rights Reserved.
5 // </copyright>
6 //-----------------------------------------------------------------------
7 
8 #include <cstdint>
9 
10 #include "aspose.tasks.cpp/Recurring/RecurrenceRangeBase.h"
11 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
12 
13 namespace Aspose
14 {
15 namespace Tasks
16 {
17 class WorkUnit;
18 } // namespace Tasks
19 } // namespace Aspose
20 namespace System
21 {
22 namespace Collections
23 {
24 namespace Generic
25 {
26 template <typename> class IEnumerable;
27 } // namespace Generic
28 } // namespace Collections
29 } // namespace System
30 
31 namespace Aspose {
32 
33 namespace Tasks {
34 
35 /// <summary>
36 /// Represents the recurrence range of recurring task which is limited by occurrence number.
37 /// </summary>
38 class ASPOSE_TASKS_SHARED_CLASS EndAfterRecurrenceRange : public Aspose::Tasks::RecurrenceRangeBase
39 {
42 
43  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
44  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
45 
46 public:
47 
48  /// <summary>
49  /// Gets the number of occurrences which limits the recurrence range of the recurring task.
50  /// </summary>
51  ASPOSE_TASKS_SHARED_API int32_t get_OccurrenceNumber() const;
52  /// <summary>
53  /// Sets the number of occurrences which limits the recurrence range of the recurring task.
54  /// </summary>
55  ASPOSE_TASKS_SHARED_API void set_OccurrenceNumber(int32_t value);
56 
57  /// <summary>
58  /// Initializes a new instance of the <see cref="EndAfterRecurrenceRange"></see> class.
59  /// </summary>
60  // ReSharper disable once EmptyConstructor
61  ASPOSE_TASKS_SHARED_API EndAfterRecurrenceRange();
62 
63 protected:
64 
65  ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<WorkUnit>>> GetDateRanges() override;
66 
67 private:
68 
69  int32_t occurrenceNumber;
70 
71 };
72 
73 } // namespace Tasks
74 } // namespace Aspose
75 
76 
Represents the recurrence range of recurring task which is limited by occurrence number.
Definition: EndAfterRecurrenceRange.h:39
int32_t get_OccurrenceNumber() const
Gets the number of occurrences which limits the recurrence range of the recurring task.
void set_OccurrenceNumber(int32_t value)
Sets the number of occurrences which limits the recurrence range of the recurring task.
EndAfterRecurrenceRange()
Initializes a new instance of the EndAfterRecurrenceRange class.
Represents the recurrence range of recurring task.
Definition: RecurrenceRangeBase.h:50
Definition: Asn.h:13