PartialMonitoringObject::GetMonitoringRelationshipObjectsWhereSource Method (MonitoringRelationshipClass^, DerivedClassTraversalDepth)

System Center
 

Applies To: Operations Manager for System Center 2012

Note: This API is now obsolete.

Gets the relationships for which this partial monitoring object is a source in the relationship, filtered by the relationshipClass object. Gets the relationships from the current PartialMonitoringObject object, or optionally from all derived classes.

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

public:
[ObsoleteAttribute("Use ManagementGrou.EntityObjects.GetMonitoringRelationshipObjectsWhereSource")]
ReadOnlyCollection<MonitoringRelationshipObject^>^ GetMonitoringRelationshipObjectsWhereSource(
	MonitoringRelationshipClass^ relationshipClass,
	DerivedClassTraversalDepth derivedClassTraversalDepth
)

Parameters

relationshipClass
Type: Microsoft.EnterpriseManagement.Configuration::MonitoringRelationshipClass^

The relationship type to get.

derivedClassTraversalDepth
Type: Microsoft.EnterpriseManagement.Configuration::DerivedClassTraversalDepth

A value that specifies the scope of the returned results. A value of OneLevel includes only instances of the specified class in the scope of the returned results. A value of Recursive includes instances of the specified class and all instances that are contained by those instances.

Gets the relationships for which this partial monitoring object is a source in the relationship, filtered by the relationshipClass object. Gets the relationships from the current PartialMonitoringObject object, or optionally from all derived classes. The returned collection contains the monitoring relationship objects that have as a source the PartialMonitoringObject object and the class is the same as the relationshipClass object.

The derivedClassTraversalDepth specifies whether to return the relationship object from derived classes. A depth of None specifies not to traverse down to the derived classes in the inheritance hierarchy, and a Recursive depth specifies that all derived classes are to be searched.

Return to top
Show: