Retrieves the root monitor that is targeted toward this object instance and its base types, and populates a hierarchy of objects that you can navigate. Namespace: Microsoft.EnterpriseManagement.Monitoring
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in microsoft.enterprisemanagement.operationsmanager.dll)

Usage

Visual Basic
Dim instance As PartialMonitoringObject
Dim returnValue As MonitoringHierarchyNode(Of ManagementPackMonitor)

returnValue = instance.GetMonitorHierarchy

Syntax

Visual Basic
Public Function GetMonitorHierarchy As MonitoringHierarchyNode(Of ManagementPackMonitor)
C#
public MonitoringHierarchyNode<ManagementPackMonitor> GetMonitorHierarchy ()
C++
public:
MonitoringHierarchyNode<ManagementPackMonitor^>^ GetMonitorHierarchy ()
J#
public MonitoringHierarchyNode<ManagementPackMonitor> GetMonitorHierarchy ()
JScript
public function GetMonitorHierarchy () : MonitoringHierarchyNode<ManagementPackMonitor>

Return Value

A MonitoringHierarchyNode object.

Example

For a code example that uses this method, see How to Display Information about a Monitoring Object.

Remarks

You can navigate through the returned MonitoringHierarchyNode object to obtain ChildNodes and ParentNode of the PartialMonitoringObject.


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