ManagementServer.SubmitUninstallAgents Method (IList, UninstallAgentConfiguration, MonitoringTaskStatusChangeCallback)
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Starts an asynchronous operation to uninstall agents on a specified collection of managed computers in accordance with the specified uninstall configuration and receives notification when the status of any uninstall changes.
Namespace: Microsoft.EnterpriseManagement.Administration
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)
Usage
'Usage
Dim instance As ManagementServer
Dim agentManagedComputers As IList(Of PartialAgentManagedComputer)
Dim uninstallAgentConfiguration As UninstallAgentConfiguration
Dim callback As MonitoringTaskStatusChangeCallback
Dim returnValue As AgentTaskInformation
returnValue = instance.SubmitUninstallAgents(agentManagedComputers, uninstallAgentConfiguration, callback)
Syntax
'Declaration
<ObsoleteAttribute("Use this.SubmitUninstallAgents with TaskStatusChangeCallback")> _
Public Function SubmitUninstallAgents ( _
agentManagedComputers As IList(Of PartialAgentManagedComputer), _
uninstallAgentConfiguration As UninstallAgentConfiguration, _
callback As MonitoringTaskStatusChangeCallback _
) As AgentTaskInformation
[ObsoleteAttribute("Use this.SubmitUninstallAgents with TaskStatusChangeCallback")]
public AgentTaskInformation SubmitUninstallAgents (
IList<PartialAgentManagedComputer> agentManagedComputers,
UninstallAgentConfiguration uninstallAgentConfiguration,
MonitoringTaskStatusChangeCallback callback
)
[ObsoleteAttribute(L"Use this.SubmitUninstallAgents with TaskStatusChangeCallback")]
public:
AgentTaskInformation^ SubmitUninstallAgents (
IList<PartialAgentManagedComputer^>^ agentManagedComputers,
UninstallAgentConfiguration^ uninstallAgentConfiguration,
MonitoringTaskStatusChangeCallback^ callback
)
/** @attribute ObsoleteAttribute("Use this.SubmitUninstallAgents with TaskStatusChangeCallback") */
public AgentTaskInformation SubmitUninstallAgents (
IList<PartialAgentManagedComputer> agentManagedComputers,
UninstallAgentConfiguration uninstallAgentConfiguration,
MonitoringTaskStatusChangeCallback callback
)
ObsoleteAttribute("Use this.SubmitUninstallAgents with TaskStatusChangeCallback")
public function SubmitUninstallAgents (
agentManagedComputers : IList<PartialAgentManagedComputer>,
uninstallAgentConfiguration : UninstallAgentConfiguration,
callback : MonitoringTaskStatusChangeCallback
) : AgentTaskInformation
Parameters
- agentManagedComputers
The list of agent-managed computers to uninstall.
- uninstallAgentConfiguration
Information used to uninstall the agents.
- callback
A MonitoringTaskStatusChangeCallback delegate that references a user-defined method to call when the status of any uninstall in this batch changes.
Return Value
Returns a 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 Vista, Windows Server 2003, and
Target Platforms
See Also
Reference
ManagementServer Class
ManagementServer Members
Microsoft.EnterpriseManagement.Administration Namespace