Changes the primary and failover Management Servers for multiple gateway managed computers, given the specified gateway managed computers, Management Server, and failover Management Server. Namespace: Microsoft.EnterpriseManagement.Administration
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in microsoft.enterprisemanagement.operationsmanager.dll)

Usage

Visual Basic
Dim instance As ManagementGroupAdministration
Dim gatewayServers As IList(Of ManagementServer)
Dim managementServer As ManagementServer
Dim failoverManagementServers As IList(Of ManagementServer)

instance.SetManagementServer(gatewayServers, managementServer, failoverManagementServers)

Syntax

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

Parameters

gatewayServers

The gateway managed computers for which the specified Management Server and failover Management Server are set.

managementServer

The Management Server to set for the specified gateway managed computers.

failoverManagementServers

The failover Management Server to set for the specified gateway 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