ManagementServer.SubmitUninstallAgents Method (IList<PartialAgentManagedComputer>, UninstallAgentConfiguration, MonitoringTaskStatusChangeCallback)
Applies To: Operations Manager for System Center 2012
Note: This API is now obsolete.
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)
Syntax
[ObsoleteAttribute("Use this.SubmitUninstallAgents with TaskStatusChangeCallback")]
public AgentTaskInformation SubmitUninstallAgents(
IList<PartialAgentManagedComputer> agentManagedComputers,
UninstallAgentConfiguration uninstallAgentConfiguration,
MonitoringTaskStatusChangeCallback callback
)
public:
[ObsoleteAttribute("Use this.SubmitUninstallAgents with TaskStatusChangeCallback")]
AgentTaskInformation^ SubmitUninstallAgents(
IList<PartialAgentManagedComputer^>^ agentManagedComputers,
UninstallAgentConfiguration^ uninstallAgentConfiguration,
MonitoringTaskStatusChangeCallback^ callback
)
[<ObsoleteAttribute("Use this.SubmitUninstallAgents with TaskStatusChangeCallback")>]
member SubmitUninstallAgents :
agentManagedComputers:IList<PartialAgentManagedComputer> *
uninstallAgentConfiguration:UninstallAgentConfiguration *
callback:MonitoringTaskStatusChangeCallback -> AgentTaskInformation
<ObsoleteAttribute("Use this.SubmitUninstallAgents with TaskStatusChangeCallback")>
Public Function SubmitUninstallAgents (
agentManagedComputers As IList(Of PartialAgentManagedComputer),
uninstallAgentConfiguration As UninstallAgentConfiguration,
callback As MonitoringTaskStatusChangeCallback
) As AgentTaskInformation
Parameters
agentManagedComputers
Type: System.Collections.Generic.IList<PartialAgentManagedComputer>The list of agent-managed computers to uninstall.
uninstallAgentConfiguration
Type: Microsoft.EnterpriseManagement.Administration.UninstallAgentConfigurationInformation used to uninstall the agents.
callback
Type: Microsoft.EnterpriseManagement.Monitoring.MonitoringTaskStatusChangeCallbackA MonitoringTaskStatusChangeCallback delegate that references a user-defined method to call when the status of any uninstall in this batch changes.
Return Value
Type: Microsoft.EnterpriseManagement.Administration.AgentTaskInformation
Returns a AgentTaskInformation instance that allows you to access the uninstall task IDs and their associated agent names.
See Also
SubmitUninstallAgents Overload
ManagementServer Class
Microsoft.EnterpriseManagement.Administration Namespace
Return to top