Share via


PartialMonitoringObject.GetMonitorHierarchy Method

Definition

Caution

Use ManagementGroup.Monitoring.GetMonitorHierarchy methods that take this object

Gets the root monitor targeted toward this instance and its base types and prepopulates a navigatable heirarchy.

public:
 Microsoft::EnterpriseManagement::Common::MonitoringHierarchyNode<Microsoft::EnterpriseManagement::Configuration::ManagementPackMonitor ^> ^ GetMonitorHierarchy();
[System.Obsolete("Use ManagementGroup.Monitoring.GetMonitorHierarchy methods that take this object")]
public Microsoft.EnterpriseManagement.Common.MonitoringHierarchyNode<Microsoft.EnterpriseManagement.Configuration.ManagementPackMonitor> GetMonitorHierarchy ();
member this.GetMonitorHierarchy : unit -> Microsoft.EnterpriseManagement.Common.MonitoringHierarchyNode<Microsoft.EnterpriseManagement.Configuration.ManagementPackMonitor>
Public Function GetMonitorHierarchy () As MonitoringHierarchyNode(Of ManagementPackMonitor)

Returns

The root ManagementPackMonitor, or null if there isn't one.

Attributes

Examples

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

Remarks

A MonitoringHierarchyNode<T>object to obtain theChildNodes object and the ParentNodeobject of the PartialMonitoringObject object

Applies to