Gets the specified health service running on a host computer in the Management Group. Namespace: Microsoft.EnterpriseManagement.Administration
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in microsoft.enterprisemanagement.operationsmanager.dll)

Usage

Visual Basic
Dim instance As ManagementGroupAdministration
Dim healthServiceId As Guid
Dim returnValue As ComputerHealthService

returnValue = instance.GetComputerHealthServiceByHealthServiceId(healthServiceId)

Syntax

Visual Basic
Public Function GetComputerHealthServiceByHealthServiceId ( _
		healthServiceId As Guid _
) As ComputerHealthService
C#
public ComputerHealthService GetComputerHealthServiceByHealthServiceId (
		Guid healthServiceId
)
C++
public:
ComputerHealthService^ GetComputerHealthServiceByHealthServiceId (
		Guid healthServiceId
)
J#
public ComputerHealthService GetComputerHealthServiceByHealthServiceId (
		Guid healthServiceId
)
JScript
public function GetComputerHealthServiceByHealthServiceId (
		healthServiceId : Guid
) : ComputerHealthService

Parameters

healthServiceId

The globally unique identifier (GUID) for the health service you want to reference.

Return Value

A ComputerHealthService object that represents the specified health service.

Example

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