skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Tools
    ThemeBuilder Design System Kit
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now
Search all

Class RecurrenceRule

Represents a base class that the actual recurrence rules extend.
The recurrence rule is passed as a string in the form of semicolon delimited list of key=value pairs.

Examples

Daily execution:
"RecurrenceRule":"FREQ=DAILY"

Every second day with a limit of 10 executions:
"RecurrenceRule":"FREQ=DAILY;INTERVAL=2;COUNT=10"

Daily execution with a limit until the provided date in JSON format:
"RecurrenceRule":"FREQ=DAILY;UNTIL=20181009T205959Z"

Inheritance
System.Object
RecurrenceRule
DailyRecurrenceRule
HourlyRecurrenceRule
MinutelyRecurrenceRule
WeeklyRecurrenceRule
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.ReportServer.Services.Models.RecurrenceRules
Assembly: Telerik.ReportServer.Services.Models.dll

Syntax

public abstract class RecurrenceRule : ICloneable, IEquatable<RecurrenceRule>

Constructors

RecurrenceRule()

Initializes a new instance of the RecurrenceRule class.

Declaration
public RecurrenceRule()

Properties

Count

Gets or sets the maximum number of occurrences.

Declaration
public int Count { get; set; }
Property Value
System.Int32

The count.

End

Specifies the end date of the recurrence rule.

Declaration
public DateTime End { get; set; }
Property Value
System.DateTime

Frequency

Gets the type of the recurrence rule.

Declaration
public abstract RecurrenceType Frequency { get; }
Property Value
RecurrenceType

The type of the recurrence rule.

Interval

Gets or sets the interval of the recurrence rule.

Declaration
public int Interval { get; set; }
Property Value
System.Int32

The interval.

Start

Specifies the start date of the recurrence rule.

Declaration
public DateTime? Start { get; set; }
Property Value
System.Nullable<System.DateTime>

Methods

Clone()

Creates a new object that is a copy of the current RecurrenceRule instance.

Declaration
public RecurrenceRule Clone()
Returns
RecurrenceRule

A new object that is a copy of this RecurrenceRule instance.

CreateRule(RecurrenceType)

Creates a rule given its type.

Declaration
public static RecurrenceRule CreateRule(RecurrenceType type)
Parameters
RecurrenceType type

The type of the recurrence rule.

Returns
RecurrenceRule

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
System.Object obj

Returns
System.Boolean

Overrides
System.Object.Equals(System.Object)

Equals(RecurrenceRule)

Indicates whether this RecurrenceRule instance and the specified object are equal.

Declaration
public virtual bool Equals(RecurrenceRule other)
Parameters
RecurrenceRule other

Another object to compare to.

Returns
System.Boolean

true if obj is equal to this instance; otherwise, false.

Implements
System.IEquatable<T>.Equals(T)

GetHashCode()

Returns the hash code of the instance.

Declaration
public override int GetHashCode()
Returns
System.Int32

Overrides
System.Object.GetHashCode()

GetOccurrenceStart(Int32, DateTimeFormatInfo)

Gets the occurrence start given a occurrence index.

Declaration
public abstract DateTime GetOccurrenceStart(int index, DateTimeFormatInfo dateTimeFormat)
Parameters
System.Int32 index

The index.

System.Globalization.DateTimeFormatInfo dateTimeFormat

The date time format.

Returns
System.DateTime

ToString()

Converts the RecurrenceRule to a string.

Declaration
public override string ToString()
Returns
System.String

Returns the string representation of the RecurrenceRule.

Overrides
System.Object.ToString()

Explicit Interface Implementations

ICloneable.Clone()

Declaration
object ICloneable.Clone()
Returns
System.Object

Implements
System.ICloneable.Clone()

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Install Now
  • Online Demos
Support Resources
  • Documentation
  • Knowledge Base
  • Videos
  • Reporting Samples Repository
  • Reporting Release History
Community
  • Forums
  • Blogs
  • Reporting Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.