C# Class NCrontab.Advanced.Filters.SpecificDayOfWeekInMonthFilter

Handles filtering for a specific day of the week in the month (i.e. 3rd Tuesday of the month)
Inheritance: ICronFilter
Show file Open project: jcoutch/NCrontab-Advanced Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
IsMatch ( System.DateTime value ) : bool

Checks if the value is accepted by the filter

SpecificDayOfWeekInMonthFilter ( int dayOfWeek, int weekNumber, CrontabFieldKind kind ) : System

Constructs a new instance of LastDayOfWeekInMonthFilter

ToString ( ) : string

Method Details

IsMatch() public method

Checks if the value is accepted by the filter
public IsMatch ( System.DateTime value ) : bool
value System.DateTime The value to check
return bool

SpecificDayOfWeekInMonthFilter() public method

Constructs a new instance of LastDayOfWeekInMonthFilter
public SpecificDayOfWeekInMonthFilter ( int dayOfWeek, int weekNumber, CrontabFieldKind kind ) : System
dayOfWeek int The cron day of the week (0 = Sunday...7 = Saturday)
weekNumber int Indicates which occurence of the day to filter against
kind CrontabFieldKind The crontab field kind to associate with this filter
return System

ToString() public method

public ToString ( ) : string
return string