Udostępnij za pośrednictwem


ManagementServer.SubmitRepairAgents Method (IList, RepairAgentConfiguration, 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 repair agents specified by user action manager objects and receives notification when the status of any repair changes.

Namespace: Microsoft.EnterpriseManagement.Administration
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)

Usage

'Usage
Dim instance As ManagementServer
Dim userActionManagers As IList(Of MonitoringObject)
Dim repairAgentConfiguration As RepairAgentConfiguration
Dim callback As MonitoringTaskStatusChangeCallback
Dim returnValue As AgentTaskInformation

returnValue = instance.SubmitRepairAgents(userActionManagers, repairAgentConfiguration, callback)

Syntax

'Declaration
<ObsoleteAttribute("Use this.SubmitRepairAgents with TaskStatusChangeCallback")> _
Public Function SubmitRepairAgents ( _
    userActionManagers As IList(Of MonitoringObject), _
    repairAgentConfiguration As RepairAgentConfiguration, _
    callback As MonitoringTaskStatusChangeCallback _
) As AgentTaskInformation
[ObsoleteAttribute("Use this.SubmitRepairAgents with TaskStatusChangeCallback")] 
public AgentTaskInformation SubmitRepairAgents (
    IList<MonitoringObject> userActionManagers,
    RepairAgentConfiguration repairAgentConfiguration,
    MonitoringTaskStatusChangeCallback callback
)
[ObsoleteAttribute(L"Use this.SubmitRepairAgents with TaskStatusChangeCallback")] 
public:
AgentTaskInformation^ SubmitRepairAgents (
    IList<MonitoringObject^>^ userActionManagers, 
    RepairAgentConfiguration^ repairAgentConfiguration, 
    MonitoringTaskStatusChangeCallback^ callback
)
/** @attribute ObsoleteAttribute("Use this.SubmitRepairAgents with TaskStatusChangeCallback") */ 
public AgentTaskInformation SubmitRepairAgents (
    IList<MonitoringObject> userActionManagers, 
    RepairAgentConfiguration repairAgentConfiguration, 
    MonitoringTaskStatusChangeCallback callback
)
ObsoleteAttribute("Use this.SubmitRepairAgents with TaskStatusChangeCallback") 
public function SubmitRepairAgents (
    userActionManagers : IList<MonitoringObject>, 
    repairAgentConfiguration : RepairAgentConfiguration, 
    callback : MonitoringTaskStatusChangeCallback
) : AgentTaskInformation

Parameters

  • userActionManagers
    The user action manager MonitoringObject objects that refer to the agents to repair.
  • repairAgentConfiguration
    Information used to repair the agents.

Return Value

Returns a AgentTaskInformation instance that allows you to access the repair 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