Share via


ManagementGroup.GetMonitoringObjects Method

Definition

Retrieves monitoring objects.

Overloads

GetMonitoringObjects(MonitoringObjectGenericCriteria, MonitoringClass)
Obsolete.

This method returns MonitoringObjects by generic criteria

GetMonitoringObjects(ICollection<Guid>)
Obsolete.

This method returns MonitoringObjects by ids

GetMonitoringObjects(ICollection<MonitoringObjectCriteria>)
Obsolete.

This method returns a collection of monitoring objects matching any of the given criterias.

GetMonitoringObjects(MonitoringObjectGenericCriteria)
Obsolete.

This method returns MonitoringObjects by generic criteria

GetMonitoringObjects(MonitoringClass)
Obsolete.

This method returns a collection of monitoring objects of a single type and any derived types, allowing for abstract types to be specified.

GetMonitoringObjects(MonitoringObjectCriteria)
Obsolete.

This method returns a collection of monitoring objects of a single type.

GetMonitoringObjects(MonitoringObjectGenericCriteria, MonitoringClass)

Caution

Please use EntityObjects.GetObjects<MonitoringObject>()

This method returns MonitoringObjects by generic criteria

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringObject ^> ^ GetMonitoringObjects(Microsoft::EnterpriseManagement::Monitoring::MonitoringObjectGenericCriteria ^ criteria, Microsoft::EnterpriseManagement::Configuration::MonitoringClass ^ monitoringClass);
[System.Obsolete("Please use EntityObjects.GetObjects<MonitoringObject>()")]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject> GetMonitoringObjects (Microsoft.EnterpriseManagement.Monitoring.MonitoringObjectGenericCriteria criteria, Microsoft.EnterpriseManagement.Configuration.MonitoringClass monitoringClass);
member this.GetMonitoringObjects : Microsoft.EnterpriseManagement.Monitoring.MonitoringObjectGenericCriteria * Microsoft.EnterpriseManagement.Configuration.MonitoringClass -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject>
Public Function GetMonitoringObjects (criteria As MonitoringObjectGenericCriteria, monitoringClass As MonitoringClass) As ReadOnlyCollection(Of MonitoringObject)

Parameters

criteria
MonitoringObjectGenericCriteria

The criteria.

monitoringClass
MonitoringClass

The monitoring class.

Returns

A collection of MonitoringObjects.

Attributes

Applies to

GetMonitoringObjects(ICollection<Guid>)

Caution

Please use EntityObjects.GetObjects<MonitoringObject>()

This method returns MonitoringObjects by ids

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringObject ^> ^ GetMonitoringObjects(System::Collections::Generic::ICollection<Guid> ^ ids);
[System.Obsolete("Please use EntityObjects.GetObjects<MonitoringObject>()")]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject> GetMonitoringObjects (System.Collections.Generic.ICollection<Guid> ids);
member this.GetMonitoringObjects : System.Collections.Generic.ICollection<Guid> -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject>
Public Function GetMonitoringObjects (ids As ICollection(Of Guid)) As ReadOnlyCollection(Of MonitoringObject)

Parameters

ids
ICollection<Guid>

ids

Returns

A collection of MonitoringObjects.

Attributes

Examples

For an example of theGetMonitoringObjectsmethod, see How to Asynchronously Run a Management Pack Task

Applies to

GetMonitoringObjects(ICollection<MonitoringObjectCriteria>)

Caution

Please use EntityObjects.GetObjects<MonitoringObject>()

This method returns a collection of monitoring objects matching any of the given criterias.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringObject ^> ^ GetMonitoringObjects(System::Collections::Generic::ICollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringObjectCriteria ^> ^ criteriaCollection);
[System.Obsolete("Please use EntityObjects.GetObjects<MonitoringObject>()")]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject> GetMonitoringObjects (System.Collections.Generic.ICollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObjectCriteria> criteriaCollection);
member this.GetMonitoringObjects : System.Collections.Generic.ICollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObjectCriteria> -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject>
Public Function GetMonitoringObjects (criteriaCollection As ICollection(Of MonitoringObjectCriteria)) As ReadOnlyCollection(Of MonitoringObject)

Parameters

criteriaCollection
ICollection<MonitoringObjectCriteria>

The criterias to scope monitoring objects by.

Returns

The managed collection.

Attributes

Exceptions

criteriaCollection is null

criteriaCollection is empty

Applies to

GetMonitoringObjects(MonitoringObjectGenericCriteria)

Caution

Please use EntityObjects.GetObjects<MonitoringObject>()

This method returns MonitoringObjects by generic criteria

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringObject ^> ^ GetMonitoringObjects(Microsoft::EnterpriseManagement::Monitoring::MonitoringObjectGenericCriteria ^ criteria);
[System.Obsolete("Please use EntityObjects.GetObjects<MonitoringObject>()")]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject> GetMonitoringObjects (Microsoft.EnterpriseManagement.Monitoring.MonitoringObjectGenericCriteria criteria);
member this.GetMonitoringObjects : Microsoft.EnterpriseManagement.Monitoring.MonitoringObjectGenericCriteria -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject>
Public Function GetMonitoringObjects (criteria As MonitoringObjectGenericCriteria) As ReadOnlyCollection(Of MonitoringObject)

Parameters

criteria
MonitoringObjectGenericCriteria

The criteria.

Returns

A collection of MonitoringObjects.

Attributes

Applies to

GetMonitoringObjects(MonitoringClass)

Caution

Please use EntityObjects.GetObjects<MonitoringObject>()

This method returns a collection of monitoring objects of a single type and any derived types, allowing for abstract types to be specified.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringObject ^> ^ GetMonitoringObjects(Microsoft::EnterpriseManagement::Configuration::MonitoringClass ^ monitoringClass);
[System.Obsolete("Please use EntityObjects.GetObjects<MonitoringObject>()")]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject> GetMonitoringObjects (Microsoft.EnterpriseManagement.Configuration.MonitoringClass monitoringClass);
member this.GetMonitoringObjects : Microsoft.EnterpriseManagement.Configuration.MonitoringClass -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject>
Public Function GetMonitoringObjects (monitoringClass As MonitoringClass) As ReadOnlyCollection(Of MonitoringObject)

Parameters

monitoringClass
MonitoringClass

The class to scope monitoring objects by.

Returns

The managed collection.

Attributes

Exceptions

monitoringClass is null.

Applies to

GetMonitoringObjects(MonitoringObjectCriteria)

Caution

Please use EntityObjects.GetObjects<MonitoringObject>()

This method returns a collection of monitoring objects of a single type.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringObject ^> ^ GetMonitoringObjects(Microsoft::EnterpriseManagement::Monitoring::MonitoringObjectCriteria ^ criteria);
[System.Obsolete("Please use EntityObjects.GetObjects<MonitoringObject>()")]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject> GetMonitoringObjects (Microsoft.EnterpriseManagement.Monitoring.MonitoringObjectCriteria criteria);
member this.GetMonitoringObjects : Microsoft.EnterpriseManagement.Monitoring.MonitoringObjectCriteria -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject>
Public Function GetMonitoringObjects (criteria As MonitoringObjectCriteria) As ReadOnlyCollection(Of MonitoringObject)

Parameters

criteria
MonitoringObjectCriteria

The criteria to scope monitoring objects by..

Returns

The managed collection.

Attributes

Exceptions

criteria is null.

Applies to