Starts an asynchronous operation to uninstall agents on a specified collection of managed computers and receives notification when the status of any uninstall changes. Namespace: Microsoft.EnterpriseManagement.Administration
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in microsoft.enterprisemanagement.operationsmanager.dll)

Usage

Visual Basic
Dim instance As ManagementServer
Dim agentManagedComputers As IList(Of AgentManagedComputer)
Dim uninstallAgentConfiguration As UninstallAgentConfiguration
Dim callback As MonitoringTaskStatusChangeCallback
Dim returnValue As AgentTaskInformation

returnValue = instance.SubmitUninstallAgents(agentManagedComputers, uninstallAgentConfiguration, callback)

Syntax

Visual Basic
Public Function SubmitUninstallAgents ( _
		agentManagedComputers As IList(Of AgentManagedComputer), _
		uninstallAgentConfiguration As UninstallAgentConfiguration, _
		callback As MonitoringTaskStatusChangeCallback _
) As AgentTaskInformation
C#
public AgentTaskInformation SubmitUninstallAgents (
		IList<AgentManagedComputer> agentManagedComputers,
		UninstallAgentConfiguration uninstallAgentConfiguration,
		MonitoringTaskStatusChangeCallback callback
)
C++
public:
AgentTaskInformation^ SubmitUninstallAgents (
		IList<AgentManagedComputer^>^ agentManagedComputers, 
		UninstallAgentConfiguration^ uninstallAgentConfiguration, 
		MonitoringTaskStatusChangeCallback^ callback
)
J#
public AgentTaskInformation SubmitUninstallAgents (
		IList<AgentManagedComputer> agentManagedComputers, 
		UninstallAgentConfiguration uninstallAgentConfiguration, 
		MonitoringTaskStatusChangeCallback callback
)
JScript
public function SubmitUninstallAgents (
		agentManagedComputers : IList<AgentManagedComputer>, 
		uninstallAgentConfiguration : UninstallAgentConfiguration, 
		callback : MonitoringTaskStatusChangeCallback
) : AgentTaskInformation

Parameters

agentManagedComputers

The agent-managed computers on which to uninstall agents.

uninstallAgentConfiguration

Information used to configure the agent uninstalls.

callback

A MonitoringTaskStatusChangeCallback delegate that references a user-defined method to call when the status of any installation task in this batch changes.

Return Value

An AgentTaskInformation instance that allows you to access the uninstall task IDs and their associated agent names.

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