Поделиться через


ManagementGroup.GetMonitors Method ()

 

Applies To: Operations Manager for System Center 2012

Note: This API is now obsolete.

Retrieves a collection of all the monitor objects.

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

Syntax

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

Return Value

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

Returns a read-only collection ofReadOnlyCollection<T> Objects.

Examples

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

See Also

GetMonitors Overload
ManagementGroup Class
Microsoft.EnterpriseManagement Namespace

Return to top