次の方法で共有


ManagementServer.InstallAgents Method (IList, IList, InstallAgentConfiguration)

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Installs agents to the specified computers by using the specified configuration and failover servers.

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

Usage

'Usage
Dim instance As ManagementServer
Dim customMonitoringObjects As IList(Of CustomMonitoringObject)
Dim failoverServers As IList(Of ManagementServer)
Dim installAgentConfiguration As InstallAgentConfiguration
Dim returnValue As AgentTaskResult

returnValue = instance.InstallAgents(customMonitoringObjects, failoverServers, installAgentConfiguration)

Syntax

'Declaration
<ObsoleteAttribute("Use this.InstallAgents with CreatableEnterpriseManagementObject")> _
Public Function InstallAgents ( _
    customMonitoringObjects As IList(Of CustomMonitoringObject), _
    failoverServers As IList(Of ManagementServer), _
    installAgentConfiguration As InstallAgentConfiguration _
) As AgentTaskResult
[ObsoleteAttribute("Use this.InstallAgents with CreatableEnterpriseManagementObject")] 
public AgentTaskResult InstallAgents (
    IList<CustomMonitoringObject> customMonitoringObjects,
    IList<ManagementServer> failoverServers,
    InstallAgentConfiguration installAgentConfiguration
)
[ObsoleteAttribute(L"Use this.InstallAgents with CreatableEnterpriseManagementObject")] 
public:
AgentTaskResult^ InstallAgents (
    IList<CustomMonitoringObject^>^ customMonitoringObjects, 
    IList<ManagementServer^>^ failoverServers, 
    InstallAgentConfiguration^ installAgentConfiguration
)
/** @attribute ObsoleteAttribute("Use this.InstallAgents with CreatableEnterpriseManagementObject") */ 
public AgentTaskResult InstallAgents (
    IList<CustomMonitoringObject> customMonitoringObjects, 
    IList<ManagementServer> failoverServers, 
    InstallAgentConfiguration installAgentConfiguration
)
ObsoleteAttribute("Use this.InstallAgents with CreatableEnterpriseManagementObject") 
public function InstallAgents (
    customMonitoringObjects : IList<CustomMonitoringObject>, 
    failoverServers : IList<ManagementServer>, 
    installAgentConfiguration : InstallAgentConfiguration
) : AgentTaskResult

Parameters

  • customMonitoringObjects
    The computers on which to install agents.
  • failoverServers
    The servers that manage the agents if communication is lost with this server.
  • installAgentConfiguration
    Information that configures the agent installation.

Return Value

Returns a AgentTaskResult object that contains the result of the installation operation.

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