Click or drag to resize

ExtensionMethodsAppliesTo Method

Returns true if the job schedule applies at refDate given the lastRun

Namespace: SanteDB.Core
Assembly: SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.2081-alpha+b4ae72647f2cc271f89142f76fff26ad69e00f5a
Syntax
public static bool AppliesTo(
	this IJobSchedule me,
	DateTime refDate,
	DateTime? lastRun
)

Parameters

me  IJobSchedule
The job schedule to determine applicability
refDate  DateTime
The time that the system is checking if the job execution applies
lastRun  NullableDateTime
The last known run time / check time of the job. Null if never run

Return Value

Boolean
True if the schedule applies

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IJobSchedule. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also