Click or drag to resize

PeriodicScheduleCheck Method (DateTime, Int32)

Check whether this date is part of the schedule. Use if date is to be checked only against this schedule. Otherwice, precalculate date.DayOfWeek, date.Day and date.Months and used optimized version of Check.

Namespace:  DHI.Mike1D.BoundaryModule.PeriodicItem
Assembly:  DHI.Mike1D.BoundaryModule (in DHI.Mike1D.BoundaryModule.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public bool Check(
	DateTime date,
	int specialDayOfWeek
)

Parameters

date
Type: SystemDateTime
Date to check
specialDayOfWeek
Type: SystemInt32
Overrides date.DayOfWeek if 0-6, use -1 to disable

Return Value

Type: Boolean
True if input is part of schedule, false if not

Implements

IPeriodicScheduleCheck(DateTime, Int32)
See Also