MonitoringClass.GetMonitoringRules Method (BaseClassTraversalDepth)
Applies To: Operations Manager for System Center 2012
Note: This API is now obsolete.
Retrieves the monitoring rule objects that target this monitoring class, optionally including the monitoring rule objects that target the base classes of this class.
Namespace: Microsoft.EnterpriseManagement.Configuration
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)
Syntax
[ObsoleteAttribute("Use ManagementGroup.Monitoring.GetRules")]
public ReadOnlyCollection<MonitoringRule> GetMonitoringRules(
BaseClassTraversalDepth baseClassTraversalDepth
)
public:
[ObsoleteAttribute("Use ManagementGroup.Monitoring.GetRules")]
ReadOnlyCollection<MonitoringRule^>^ GetMonitoringRules(
BaseClassTraversalDepth baseClassTraversalDepth
)
[<ObsoleteAttribute("Use ManagementGroup.Monitoring.GetRules")>]
member GetMonitoringRules :
baseClassTraversalDepth:BaseClassTraversalDepth -> ReadOnlyCollection<MonitoringRule>
<ObsoleteAttribute("Use ManagementGroup.Monitoring.GetRules")>
Public Function GetMonitoringRules (
baseClassTraversalDepth As BaseClassTraversalDepth
) As ReadOnlyCollection(Of MonitoringRule)
Parameters
baseClassTraversalDepth
Type: Microsoft.EnterpriseManagement.Configuration.BaseClassTraversalDepthDetermines whether to also return monitoring rule objects that target the base classes of this class. A value of None does not include base classes. A value of Recursive includes base classes.
Return Value
Type: System.Collections.ObjectModel.ReadOnlyCollection<MonitoringRule>
Returns a ReadOnlyCollection<T> of MonitoringRule objects.
See Also
GetMonitoringRules Overload
MonitoringClass Class
Microsoft.EnterpriseManagement.Configuration Namespace
Return to top