Cancels the callback for the specified batch of agent tasks. Namespace: Microsoft.EnterpriseManagement.Administration
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in microsoft.enterprisemanagement.operationsmanager.dll)

Usage

Visual Basic
Dim instance As ManagementServer
Dim batchId As Guid

instance.UnregisterExecuteAgentTasks(batchId)

Syntax

Visual Basic
Public Sub UnregisterExecuteAgentTasks ( _
		batchId As Guid _
)
C#
public void UnregisterExecuteAgentTasks (
		Guid batchId
)
C++
public:
void UnregisterExecuteAgentTasks (
		Guid batchId
)
J#
public void UnregisterExecuteAgentTasks (
		Guid batchId
)
JScript
public function UnregisterExecuteAgentTasks (
		batchId : Guid
)

Parameters

batchId

The globally unique identifier (GUID) for the batch of tasks that you want to cancel callbacks for.

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.


Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP

Target Platforms

Windows Server 2008,Windows Server 2003,Windows Vista,Windows XP

See Also