Changes the primary and failover Management Servers for multiple partial agent-managed computers. Namespace: Microsoft.EnterpriseManagement.Administration
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in microsoft.enterprisemanagement.operationsmanager.dll)

Usage

Visual Basic
Dim instance As ManagementGroupAdministration
Dim agentManagedComputers As IList(Of PartialAgentManagedComputer)
Dim managementServer As ManagementServer

instance.SetManagementServer(agentManagedComputers, managementServer)

Syntax

Visual Basic
Public Sub SetManagementServer ( _
		agentManagedComputers As IList(Of PartialAgentManagedComputer), _
		managementServer As ManagementServer _
)
C#
public void SetManagementServer (
		IList<PartialAgentManagedComputer> agentManagedComputers,
		ManagementServer managementServer
)
C++
public:
void SetManagementServer (
		IList<PartialAgentManagedComputer^>^ agentManagedComputers, 
		ManagementServer^ managementServer
)
J#
public void SetManagementServer (
		IList<PartialAgentManagedComputer> agentManagedComputers, 
		ManagementServer managementServer
)
JScript
public function SetManagementServer (
		agentManagedComputers : IList<PartialAgentManagedComputer>, 
		managementServer : ManagementServer
)

Parameters

agentManagedComputers

The agent-managed computers for which the specified Management Server is set.

managementServer

The Management Server to set for the specified agent-managed computers.

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 Server 2008, Windows Vista, Windows Server 2003, and Windows XP

Target Platforms

Windows Server 2008,Windows Server 2003,Windows Vista,Windows XP

See Also