Share via


ManagementGroup.GetMonitoringRules Method ()

 

Applies To: Operations Manager for System Center 2012

Note: This API is now obsolete.

Retrieves a collection of all the monitoring rules.

Namespace:   Microsoft.EnterpriseManagement
Assembly:  Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)

Syntax

[ObsoleteAttribute("Please use Monitoring.GetRules()")]
public ReadOnlyCollection<MonitoringRule> GetMonitoringRules()
public:
[ObsoleteAttribute("Please use Monitoring.GetRules()")]
ReadOnlyCollection<MonitoringRule^>^ GetMonitoringRules()
[<ObsoleteAttribute("Please use Monitoring.GetRules()")>]
member GetMonitoringRules : unit -> ReadOnlyCollection<MonitoringRule>
<ObsoleteAttribute("Please use Monitoring.GetRules()")>
Public Function GetMonitoringRules As ReadOnlyCollection(Of MonitoringRule)

Return Value

Type: System.Collections.ObjectModel.ReadOnlyCollection<MonitoringRule>

Returns aReadOnlyCollection<T> object ofMonitoringRule objects.

Examples

The following example defines aManagementGroupinstance and retrieves its monitors, monitoring rules, and knowledge articles.

See Also

GetMonitoringRules Overload
ManagementGroup Class
Microsoft.EnterpriseManagement Namespace

Return to top