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. |
Returns a monthly reoccurring pattern when events occur on a specific day of the month.
public static MonthlyDayPattern Monthly(int dayOfMonth, int interval = 1)
dayOfMonth
: int
The day of the month when the event occurs.
interval
: int
The interval of occurrences in number of months.
MonthlyDayPattern
An instance of MonthlyDayPattern
class.
Exception | Description |
---|---|
System.ArgumentOutOfRangeException | dayOfMonth is less than 1 or greater than 31. Or, interval is less than 1. |
Returns a monthly reoccurring pattern when events occur on a specific day of the week and a specific week of the month.
public static MonthlyWeekPattern Monthly(
WeekOfMonth weekOfMonth,
DayOfWeek dayOfWeek,
int interval = 1
)
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.
MonthlyWeekPattern
An instance of MonthlyWeekPattern
class.
Exception | Description |
---|---|
System.ArgumentOutOfRangeException | interval is less than 1. |
Returns a monthly reoccurring pattern when events occur on one of the specified days of the week and a specific week of the month.
public static MonthlyWeekPattern Monthly(
WeekOfMonth weekOfMonth,
DaysOfTheWeek daysOfWeek,
int interval = 1
)
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.
MonthlyWeekPattern
An instance of MonthlyWeekPattern
class.
Exception | Description |
---|---|
System.ArgumentOutOfRangeException | interval is less than 1. |
This document is generated by DG.