Skip to content

Latest commit

 

History

History
132 lines (86 loc) · 4.43 KB

Assorted.Utils.Dates.Recurrent.Monthly.md

File metadata and controls

132 lines (86 loc) · 4.43 KB

Recurrent.Monthly Method

Namespace: Assorted.Utils.Dates
Assembly: Assorted.Utils (Assorted.Utils.dll) version 1.1.0.0

Returns a monthly reoccurring pattern.

Overload Description
Monthly(int, int) Returns a monthly reoccurring pattern when events occur on a specific day of the month.
Monthly(WeekOfMonth, DayOfWeek, int) Returns a monthly reoccurring pattern when events occur on a specific day of the week and a specific week of the month.
Monthly(WeekOfMonth, DaysOfTheWeek, int) Returns a monthly reoccurring pattern when events occur on one of the specified days of the week and a specific week of the month.

Monthly(int, int)

Returns a monthly reoccurring pattern when events occur on a specific day of the month.

Syntax

public static MonthlyDayPattern Monthly(int dayOfMonth, int interval = 1)

Parameters

dayOfMonth: int
The day of the month when the event occurs.

interval: int
The interval of occurrences in number of months.

Return Value

MonthlyDayPattern
An instance of MonthlyDayPattern class.

Exceptions

Exception Description
System.ArgumentOutOfRangeException dayOfMonth is less than 1 or greater than 31. Or, interval is less than 1.

See Also

Monthly(WeekOfMonth, DayOfWeek, int)

Returns a monthly reoccurring pattern when events occur on a specific day of the week and a specific week of the month.

Syntax

public static MonthlyWeekPattern Monthly(
    WeekOfMonth weekOfMonth, 
    DayOfWeek dayOfWeek, 
    int interval = 1
)

Parameters

weekOfMonth: WeekOfMonth
The week of the month when the event occurs.

dayOfWeek: DayOfWeek
The day of the week when the event occurs.

interval: int
The interval of occurrences in number of months.

Return Value

MonthlyWeekPattern
An instance of MonthlyWeekPattern class.

Exceptions

Exception Description
System.ArgumentOutOfRangeException interval is less than 1.

See Also

Monthly(WeekOfMonth, DaysOfTheWeek, int)

Returns a monthly reoccurring pattern when events occur on one of the specified days of the week and a specific week of the month.

Syntax

public static MonthlyWeekPattern Monthly(
    WeekOfMonth weekOfMonth, 
    DaysOfTheWeek daysOfWeek, 
    int interval = 1
)

Parameters

weekOfMonth: WeekOfMonth
The week of the month when the event occurs.

daysOfWeek: DaysOfTheWeek
The accepted days of the week when the event can occur.

interval: int
The interval of occurrences in number of months.

Return Value

MonthlyWeekPattern
An instance of MonthlyWeekPattern class.

Exceptions

Exception Description
System.ArgumentOutOfRangeException interval is less than 1.

See Also


This document is generated by DG.