Share via


ManagementGroup.GetMonitors Method

Definition

Retrieves a collection of management pack monitor objects.

Overloads

GetMonitors(ManagementPackMonitorCriteria)
Obsolete.

Gets monitors based on criteria.

GetMonitors()
Obsolete.

Gets monitors.

GetMonitors(ManagementPackMonitorCriteria)

Caution

Please use Monitoring.GetMonitors()

Gets monitors based on criteria.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Configuration::ManagementPackMonitor ^> ^ GetMonitors(Microsoft::EnterpriseManagement::Configuration::ManagementPackMonitorCriteria ^ criteria);
[System.Obsolete("Please use Monitoring.GetMonitors()")]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Configuration.ManagementPackMonitor> GetMonitors (Microsoft.EnterpriseManagement.Configuration.ManagementPackMonitorCriteria criteria);
member this.GetMonitors : Microsoft.EnterpriseManagement.Configuration.ManagementPackMonitorCriteria -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Configuration.ManagementPackMonitor>
Public Function GetMonitors (criteria As ManagementPackMonitorCriteria) As ReadOnlyCollection(Of ManagementPackMonitor)

Parameters

criteria
ManagementPackMonitorCriteria

The criteria.

Returns

A collection of monitors that match the criteria.

Attributes

Applies to

GetMonitors()

Caution

Please use Monitoring.GetMonitors()

Gets monitors.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Configuration::ManagementPackMonitor ^> ^ GetMonitors();
[System.Obsolete("Please use Monitoring.GetMonitors()")]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Configuration.ManagementPackMonitor> GetMonitors ();
member this.GetMonitors : unit -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Configuration.ManagementPackMonitor>
Public Function GetMonitors () As ReadOnlyCollection(Of ManagementPackMonitor)

Returns

A collection of views that match the criteria.

Attributes

Examples

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

Applies to