Condividi tramite


ManagementGroup.GetMonitoringRules<T> Method (ICollection<T>)

 

Applies To: Operations Manager for System Center 2012

Note: This API is now obsolete.

Retrieves the monitoring rules in the management group that target the specified monitoring objects.

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

Syntax

[ObsoleteAttribute("Please use Monitoring.GetRules<T>()")]
public ReadOnlyCollection<MonitoringRule> GetMonitoringRules<T>(
    ICollection<T> monitoringObjects
)
where T : PartialMonitoringObject
public:
generic<typename T>
where T : PartialMonitoringObject
[ObsoleteAttribute("Please use Monitoring.GetRules<T>()")]
ReadOnlyCollection<MonitoringRule^>^ GetMonitoringRules(
    ICollection<T>^ monitoringObjects
)
[<ObsoleteAttribute("Please use Monitoring.GetRules<T>()")>]
member GetMonitoringRules<'T when 'T : PartialMonitoringObject> : 
        monitoringObjects:ICollection<'T> -> ReadOnlyCollection<MonitoringRule>
<ObsoleteAttribute("Please use Monitoring.GetRules<T>()")>
Public Function GetMonitoringRules(Of T As PartialMonitoringObject) (
    monitoringObjects As ICollection(Of T)
) As ReadOnlyCollection(Of MonitoringRule)

Parameters

Return Value

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

Returns aReadOnlyCollection<T>object ofMonitoringRule objects.

Type Parameters

See Also

GetMonitoringRules Overload
ManagementGroup Class
Microsoft.EnterpriseManagement Namespace

Return to top