ManagementGroup::GetMonitoringRelationshipObjects Method (MonitoringRelationshipObjectGenericCriteria^, MonitoringClass^, MonitoringClass^)
Applies To: Operations Manager for System Center 2012
Retrieves a collection of monitoring relationship objects from the specified source class for the specified target class, with the returned objects that match the specified filter.
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)
public: [ObsoleteAttribute("Please use EntityObjects.GetMonitoringRelationshipObjects()")] ReadOnlyCollection<MonitoringRelationshipObject^>^ GetMonitoringRelationshipObjects( MonitoringRelationshipObjectGenericCriteria^ criteria, MonitoringClass^ sourceMonitoringClass, MonitoringClass^ targetMonitoringClass )
Parameters
- criteria
-
Type:
Microsoft.EnterpriseManagement.Monitoring::MonitoringRelationshipObjectGenericCriteria^
A value that specifies the kind of monitoring relationship objects.
- sourceMonitoringClass
-
Type:
Microsoft.EnterpriseManagement.Configuration::MonitoringClass^
The monitoring class, with all the derived classes, that defines the range of the returned results. The results contain monitoring relationship objects that have this class as the source class.
- targetMonitoringClass
-
Type:
Microsoft.EnterpriseManagement.Configuration::MonitoringClass^
The monitoring class, with all the derived classes, that defines the range of the returned results. The results contain monitoring relationship objects that have this class as the target class.
Return Value
Type: System.Collections.ObjectModel::ReadOnlyCollection<MonitoringRelationshipObject^>^Returns aReadOnlyCollection<T> object ofMonitoringRelationshipObject objects.