ISchedulerJob.CancelTask Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CancelTask(ITaskId) |
Cancels the specified task. |
CancelTask(ITaskId, String) |
Cancels the specified task and provides the specified message to the user to explain the task was canceled. |
CancelTask(ITaskId, String, Boolean) |
Cancels the specified task with the option to specify that you want to cancel the task immediately without using for the grace period for canceling a task, and provides the specified message to the user to explain the task was canceled. |
CancelTask(ITaskId)
Cancels the specified task.
public void CancelTask (Microsoft.Hpc.Scheduler.Properties.ITaskId taskId);
abstract member CancelTask : Microsoft.Hpc.Scheduler.Properties.ITaskId -> unit
Public Sub CancelTask (taskId As ITaskId)
Parameters
- taskId
- ITaskId
Applies to
CancelTask(ITaskId, String)
Cancels the specified task and provides the specified message to the user to explain the task was canceled.
[System.Runtime.InteropServices.ComVisible(true)]
public void CancelTask (Microsoft.Hpc.Scheduler.Properties.ITaskId taskId, string message);
abstract member CancelTask : Microsoft.Hpc.Scheduler.Properties.ITaskId * string -> unit
Public Sub CancelTask (taskId As ITaskId, message As String)
Parameters
- taskId
- ITaskId
- message
- String
- Attributes
Applies to
CancelTask(ITaskId, String, Boolean)
Cancels the specified task with the option to specify that you want to cancel the task immediately without using for the grace period for canceling a task, and provides the specified message to the user to explain the task was canceled.
public void CancelTask (Microsoft.Hpc.Scheduler.Properties.ITaskId taskId, string message, bool isForce);
abstract member CancelTask : Microsoft.Hpc.Scheduler.Properties.ITaskId * string * bool -> unit
Public Sub CancelTask (taskId As ITaskId, message As String, isForce As Boolean)
Parameters
- taskId
- ITaskId
- message
- String
- isForce
- Boolean