skip navigation
  • Product Bundles

    DevCraft

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

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class YearlyRecurrenceRule

Represents a yearly recurrence rule.

Inheritance
System.Object
RecurrenceRule
WeeklyRecurrenceRule
MonthlyRecurrenceRule
YearlyRecurrenceRule
Inherited Members
MonthlyRecurrenceRule.DefaultDayNumber
MonthlyRecurrenceRule.DefaultWeekNumber
MonthlyRecurrenceRule.MatchDayOfMonth(DateTime, DateTimeFormatInfo)
MonthlyRecurrenceRule.MatchWeekOfMonth(DateTime, DateTimeFormatInfo)
MonthlyRecurrenceRule.MatchWeekOfMonth(DateTime, DateTime, DateTimeFormatInfo)
MonthlyRecurrenceRule.DayNumber
MonthlyRecurrenceRule.WeekNumber
WeeklyRecurrenceRule.DefaultOffset
WeeklyRecurrenceRule.MatchOffset
WeeklyRecurrenceRule.GetFirstDayOfWeek(DateTimeFormatInfo)
WeeklyRecurrenceRule.MatchOffsetPositive(DateTime, DateTimeFormatInfo)
WeeklyRecurrenceRule.MatchOffsetNegative(DateTime, DateTimeFormatInfo)
WeeklyRecurrenceRule.MatchDayOfWeekMask(DateTime, Calendar)
WeeklyRecurrenceRule.IncludeWeekDays(WeekDays)
WeeklyRecurrenceRule.ExcludeWeekDays(WeekDays)
WeeklyRecurrenceRule.AreWeekDaysIncluded(WeekDays)
WeeklyRecurrenceRule.IntersectsWithException(DateTime, TimeSpan, IEvent)
WeeklyRecurrenceRule.WeekDays
WeeklyRecurrenceRule.Offset
WeeklyRecurrenceRule.FirstDayOfWeek
RecurrenceRule.DefaultEndDate
RecurrenceRule.DefaultCount
RecurrenceRule.CreateRule(RecurrenceType)
RecurrenceRule.SuspendNotifications()
RecurrenceRule.ResumeNotifications()
RecurrenceRule.OnPropertyChanged(String)
RecurrenceRule.IsExceptionDate(DateTime)
RecurrenceRule.IsValid()
RecurrenceRule.Equals(Object)
RecurrenceRule.GetHashCode()
RecurrenceRule.ToString()
RecurrenceRule.Clone()
RecurrenceRule.ICloneable.Clone()
RecurrenceRule.ExceptionDates
RecurrenceRule.Start
RecurrenceRule.End
RecurrenceRule.EventDuration
RecurrenceRule.Count
RecurrenceRule.Interval
RecurrenceRule.PropertyChanged
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.Scheduler.dll

Syntax

public class YearlyRecurrenceRule : MonthlyRecurrenceRule, INotifyPropertyChanged, ICloneable, IEquatable<RecurrenceRule>

Constructors

YearlyRecurrenceRule()

Initializes a new instance of the YearlyRecurrenceRule class.

Declaration
public YearlyRecurrenceRule()

YearlyRecurrenceRule(DateTime, Int32, Int32)

Initializes a new instance of the YearlyRecurrenceRule class.

Declaration
public YearlyRecurrenceRule(DateTime start, int dayNumber, int interval)
Parameters
System.DateTime start

The start of the recurrence rule.

System.Int32 dayNumber

The day number.

System.Int32 interval

The interval of the recurrence rule.

YearlyRecurrenceRule(DateTime, Int32, Int32, Int32)

Initializes a new instance of the YearlyRecurrenceRule class.

Declaration
public YearlyRecurrenceRule(DateTime start, int monthNumber, int dayNumber, int interval)
Parameters
System.DateTime start

The start of the recurrence rule.

System.Int32 monthNumber

The month number.

System.Int32 dayNumber

The day number.

System.Int32 interval

The interval of the recurrence rule.

YearlyRecurrenceRule(DateTime, Int32, Int32, Int32, Int32)

Initializes a new instance of the YearlyRecurrenceRule class.

Declaration
public YearlyRecurrenceRule(DateTime start, int monthNumber, int dayNumber, int interval, int count)
Parameters
System.DateTime start

The start of the recurrence rule.

System.Int32 monthNumber

The month number.

System.Int32 dayNumber

The day number.

System.Int32 interval

The interval of the recurrence rule.

System.Int32 count

The count.

YearlyRecurrenceRule(DateTime, Int32, Int32, WeekDays, Int32)

Initializes a new instance of the YearlyRecurrenceRule class.

Declaration
public YearlyRecurrenceRule(DateTime start, int monthNumber, int weekNumber, WeekDays weekdays, int interval)
Parameters
System.DateTime start

The start of the recurrence rule.

System.Int32 monthNumber

The month number.

System.Int32 weekNumber

The week number.

WeekDays weekdays

The week days.

System.Int32 interval

The interval of the recurrence rule.

YearlyRecurrenceRule(DateTime, Int32, Int32, WeekDays, Int32, Int32)

Initializes a new instance of the YearlyRecurrenceRule class.

Declaration
public YearlyRecurrenceRule(DateTime start, int monthNumber, int weekNumber, WeekDays weekdays, int interval, int count)
Parameters
System.DateTime start

The start of the recurrence rule.

System.Int32 monthNumber

The month number.

System.Int32 weekNumber

The week number.

WeekDays weekdays

The week days.

System.Int32 interval

The interval of the recurrence rule.

System.Int32 count

The count.

YearlyRecurrenceRule(DateTime, Int32, WeekDays, Int32)

Initializes a new instance of the YearlyRecurrenceRule class.

Declaration
public YearlyRecurrenceRule(DateTime start, int weekNumber, WeekDays weekdays, int interval)
Parameters
System.DateTime start

The start of the recurrence rule.

System.Int32 weekNumber

The week number.

WeekDays weekdays

The week days.

System.Int32 interval

The interval of the recurrence rule.

YearlyRecurrenceRule(DateTime, Int32, WeekDays, Int32, Int32)

Initializes a new instance of the YearlyRecurrenceRule class.

Declaration
public YearlyRecurrenceRule(DateTime start, int weekNumber, WeekDays weekdays, int interval, int count)
Parameters
System.DateTime start

The start of the recurrence rule.

System.Int32 weekNumber

The week number.

WeekDays weekdays

The week days.

System.Int32 interval

The interval of the recurrence rule.

System.Int32 count

The count.

YearlyRecurrenceRule(DateTime, Int32, WeekDays, Int32, Int32, Int32)

Initializes a new instance of the YearlyRecurrenceRule class.

Declaration
public YearlyRecurrenceRule(DateTime start, int monthNumber, WeekDays weekdays, int offset, int interval, int count)
Parameters
System.DateTime start

The start of the recurrence rule.

System.Int32 monthNumber

The month number.

WeekDays weekdays

The week days.

System.Int32 offset

The offset of the recurrence rule.

System.Int32 interval

The interval of the recurrence rule.

System.Int32 count

The count.

YearlyRecurrenceRule(DateTime, WeekDays, Int32, Int32)

Initializes a new instance of the YearlyRecurrenceRule class.

Declaration
public YearlyRecurrenceRule(DateTime start, WeekDays weekdays, int offset, int interval)
Parameters
System.DateTime start

The start of the recurrence rule.

WeekDays weekdays

The week days.

System.Int32 offset

The offset.

System.Int32 interval

The interval of the recurrence rule.

YearlyRecurrenceRule(DateTime, WeekDays, Int32, Int32, Int32)

Initializes a new instance of the YearlyRecurrenceRule class.

Declaration
public YearlyRecurrenceRule(DateTime start, WeekDays weekdays, int offset, int interval, int count)
Parameters
System.DateTime start

The start of the recurrence rule.

WeekDays weekdays

The week days.

System.Int32 offset

The offset of the recurrence rule.

System.Int32 interval

The interval of the recurrence rule.

System.Int32 count

The count.

Fields

DefaultMonthNumber

Declaration
public static readonly int DefaultMonthNumber
Field Value
System.Int32

Properties

Frequency

Gets the type of the recurrence rule.

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

The type of the recurrence rule.

Overrides
MonthlyRecurrenceRule.Frequency

MonthNumber

Gets or sets the month number.

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

The month number.

Methods

CopyProperties(RecurrenceRule)

Declaration
protected override void CopyProperties(RecurrenceRule other)
Parameters
RecurrenceRule other

Overrides
MonthlyRecurrenceRule.CopyProperties(RecurrenceRule)

CreateInstance()

Declaration
protected override RecurrenceRule CreateInstance()
Returns
RecurrenceRule

Overrides
MonthlyRecurrenceRule.CreateInstance()

Equals(RecurrenceRule)

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

Returns
System.Boolean

Overrides
MonthlyRecurrenceRule.Equals(RecurrenceRule)

GetNegativeOffsetStart(DateTime, DateTimeFormatInfo)

Declaration
protected override DateTime GetNegativeOffsetStart(DateTime date, DateTimeFormatInfo dateTimeFormat)
Parameters
System.DateTime date

System.Globalization.DateTimeFormatInfo dateTimeFormat

Returns
System.DateTime

Overrides
MonthlyRecurrenceRule.GetNegativeOffsetStart(DateTime, DateTimeFormatInfo)

GetOccurrenceStart(Int32, DateTime, DateTimeFormatInfo)

Gets the occurrence start given a occurrence index.

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

The index.

System.DateTime startDate

The start of the recurring series.

System.Globalization.DateTimeFormatInfo dateTimeFormat

The date time format.

Returns
System.DateTime

Overrides
MonthlyRecurrenceRule.GetOccurrenceStart(Int32, DateTime, DateTimeFormatInfo)

GetPositiveOffsetStart(DateTime, DateTimeFormatInfo)

Declaration
protected override DateTime GetPositiveOffsetStart(DateTime date, DateTimeFormatInfo dateTimeFormat)
Parameters
System.DateTime date

System.Globalization.DateTimeFormatInfo dateTimeFormat

Returns
System.DateTime

Overrides
MonthlyRecurrenceRule.GetPositiveOffsetStart(DateTime, DateTimeFormatInfo)

IsOffsetMatch(DateTime, DateTimeFormatInfo)

Declaration
protected override bool IsOffsetMatch(DateTime date, DateTimeFormatInfo dateTimeFormat)
Parameters
System.DateTime date

System.Globalization.DateTimeFormatInfo dateTimeFormat

Returns
System.Boolean

Overrides
MonthlyRecurrenceRule.IsOffsetMatch(DateTime, DateTimeFormatInfo)

MatchAdvancedPattern(DateTime, DateTimeFormatInfo)

Declaration
public override bool MatchAdvancedPattern(DateTime date, DateTimeFormatInfo dateTimeFormat)
Parameters
System.DateTime date

System.Globalization.DateTimeFormatInfo dateTimeFormat

Returns
System.Boolean

Overrides
MonthlyRecurrenceRule.MatchAdvancedPattern(DateTime, DateTimeFormatInfo)

MatchDayNumber(DateTime, DateTimeFormatInfo)

Declaration
protected bool MatchDayNumber(DateTime date, DateTimeFormatInfo dateTimeFormat)
Parameters
System.DateTime date

System.Globalization.DateTimeFormatInfo dateTimeFormat

Returns
System.Boolean

MatchWeekNumber(DateTime, DateTimeFormatInfo)

Declaration
protected bool MatchWeekNumber(DateTime date, DateTimeFormatInfo dateTimeFormat)
Parameters
System.DateTime date

System.Globalization.DateTimeFormatInfo dateTimeFormat

Returns
System.Boolean

TryGetCloseToNextOccurrenceDate(DateTime, Boolean, out DateTime)

Declaration
public override bool TryGetCloseToNextOccurrenceDate(DateTime currentDate, bool hasOccurrenceOnCurrentDate, out DateTime closeToNextDate)
Parameters
System.DateTime currentDate

System.Boolean hasOccurrenceOnCurrentDate

System.DateTime closeToNextDate

Returns
System.Boolean

Overrides
MonthlyRecurrenceRule.TryGetCloseToNextOccurrenceDate(DateTime, Boolean, out DateTime)

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing 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.