| 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.481-alpha
Syntax public static bool AppliesTo(
this IJobSchedule me,
DateTime refDate,
DateTime? lastRun
)
<ExtensionAttribute>
Public Shared Function AppliesTo (
me As IJobSchedule,
refDate As DateTime,
lastRun As DateTime?
) As Boolean
public:
[ExtensionAttribute]
static bool AppliesTo(
IJobSchedule^ me,
DateTime refDate,
Nullable<DateTime> lastRun
)
[<ExtensionAttribute>]
static member AppliesTo :
me : IJobSchedule *
refDate : DateTime *
lastRun : Nullable<DateTime> -> bool
Parameters
- me
- Type: SanteDB.Core.JobsIJobSchedule
The job schedule to determine applicability - refDate
- Type: SystemDateTime
The time that the system is checking if the job execution applies - lastRun
- Type: SystemNullableDateTime
The last known run time / check time of the job. Null if never run
Return Value
Type:
BooleanTrue 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