| BackgroundJobDelete Method (String, String) |
Changes state of a job with the specified
jobId
to the
DeletedState. State change is only performed
if current job state is equal to the
fromState value.
Namespace: HangfireAssembly: Hangfire.Core (in Hangfire.Core.dll) Version: 1.5.0.0
Syntax public static bool Delete(
[NotNullAttribute] string jobId,
[CanBeNullAttribute] string fromState
)
Public Shared Function Delete (
<NotNullAttribute> jobId As String,
<CanBeNullAttribute> fromState As String
) As Boolean
Parameters
- jobId
- Type: SystemString
Identifier of job, whose state is being changed. - fromState
- Type: SystemString
Current state assertion, or null if unneeded.
Return Value
Type:
BooleanTrue, if state change succeeded, otherwise false.
See Also