Share via


ManagementServer.UnregisterExecuteAgentTasks Method

Definition

Cancels the callback for asynchronous agent operations.

Overloads

UnregisterExecuteAgentTasks(Guid)

Unregisters the callback for agent tasks.

UnregisterExecuteAgentTasks(IAsyncResult)

Unregisters the callback for agent tasks.

UnregisterExecuteAgentTasks(Guid)

Unregisters the callback for agent tasks.

public:
 void UnregisterExecuteAgentTasks(Guid batchId);
public void UnregisterExecuteAgentTasks (Guid batchId);
member this.UnregisterExecuteAgentTasks : Guid -> unit
Public Sub UnregisterExecuteAgentTasks (batchId As Guid)

Parameters

batchId
Guid

Batch id.

Remarks

If you specified a callback method when submitting an agent task, the specified method is automatically called when the status of any task changes. After you cancel the callback for a batch of tasks, changes in task status no longer cause the automatic execution of the specified callback method.

Applies to

UnregisterExecuteAgentTasks(IAsyncResult)

Unregisters the callback for agent tasks.

public:
 void UnregisterExecuteAgentTasks(IAsyncResult ^ asyncResult);
public void UnregisterExecuteAgentTasks (IAsyncResult asyncResult);
member this.UnregisterExecuteAgentTasks : IAsyncResult -> unit
Public Sub UnregisterExecuteAgentTasks (asyncResult As IAsyncResult)

Parameters

asyncResult
IAsyncResult

IAsyncResult

Remarks

If you specified a callback method when starting an agent task, the specified method is automatically called when the task is complete. After you cancel the callback for a task, its completion no longer causes the automatic execution of the specified callback method.

Applies to