Connects the health service to the specified Management Group. Namespace: Microsoft.EnterpriseManagement.Administration
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in microsoft.enterprisemanagement.operationsmanager.dll)

Usage

Visual Basic
Dim instance As ComputerHealthService
Dim managementGroup As ManagementGroup

instance.Reconnect(managementGroup)

Syntax

Visual Basic
Public Overrides Sub Reconnect ( _
		managementGroup As ManagementGroup _
)
C#
public override void Reconnect (
		ManagementGroup managementGroup
)
C++
public:
virtual void Reconnect (
		ManagementGroup^ managementGroup
) override
J#
public void Reconnect (
		ManagementGroup managementGroup
)
JScript
public override function Reconnect (
		managementGroup : ManagementGroup
)

Parameters

managementGroup

The Management Group to which the health service connects.

Remarks

You can use this method to attempt to reconnect a health service to a Management Group when an ObjectNotConnectedException is thrown (indicating that the health service is no longer connected to a Management Group).


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