ManagementServer.BeginExecuteUninstallAgents Method (IList<AgentManagedComputer>, UninstallAgentConfiguration, AsyncCallback, Object)
Applies To: Operations Manager for System Center 2012
Starts an asynchronous operation to uninstall agents on a specified collection of managed computers.
Namespace: Microsoft.EnterpriseManagement.Administration
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)
Syntax
public IAsyncResult BeginExecuteUninstallAgents(
IList<AgentManagedComputer> agentManagedComputers,
UninstallAgentConfiguration uninstallAgentConfiguration,
AsyncCallback callback,
object state
)
public:
IAsyncResult^ BeginExecuteUninstallAgents(
IList<AgentManagedComputer^>^ agentManagedComputers,
UninstallAgentConfiguration^ uninstallAgentConfiguration,
AsyncCallback^ callback,
Object^ state
)
member BeginExecuteUninstallAgents :
agentManagedComputers:IList<AgentManagedComputer> *
uninstallAgentConfiguration:UninstallAgentConfiguration *
callback:AsyncCallback *
state:Object -> IAsyncResult
Public Function BeginExecuteUninstallAgents (
agentManagedComputers As IList(Of AgentManagedComputer),
uninstallAgentConfiguration As UninstallAgentConfiguration,
callback As AsyncCallback,
state As Object
) As IAsyncResult
Parameters
agentManagedComputers
Type: System.Collections.Generic.IList<AgentManagedComputer>The agent-managed computers on which to uninstall agents.
uninstallAgentConfiguration
Type: Microsoft.EnterpriseManagement.Administration.UninstallAgentConfigurationInformation used to configure the uninstall.
callback
Type: System.AsyncCallbackAn AsyncCallback delegate that references a user-defined method to call when the uninstall is complete.
state
Type: System.ObjectA user-defined object that you can use to pass information about the state of the asynchronous operation to the method specified in the callback parameter.
Return Value
Type: System.IAsyncResult
Returns an IAsyncResult instance that you can use to check the status of the asynchronous operation.
See Also
ManagementServer Class
Microsoft.EnterpriseManagement.Administration Namespace
Return to top