Udostępnij za pośrednictwem


PartialMonitoringObject.GetMonitoringRelationshipObjectsWhereSource Method (MonitoringRelationshipObjectGenericCriteria, TraversalDepth)

 

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 relationships that meet the criteria filter. Gets the relationships from the current PartialMonitoringObject object, or optionally from all related PartialMonitoringObject objects.

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

Syntax

[ObsoleteAttribute("Use ManagementGrou.EntityObjects.GetMonitoringRelationshipObjectsWhereSource")]
public ReadOnlyCollection<MonitoringRelationshipObject> GetMonitoringRelationshipObjectsWhereSource(
    MonitoringRelationshipObjectGenericCriteria criteria,
    TraversalDepth traversalDepth
)
public:
[ObsoleteAttribute("Use ManagementGrou.EntityObjects.GetMonitoringRelationshipObjectsWhereSource")]
ReadOnlyCollection<MonitoringRelationshipObject^>^ GetMonitoringRelationshipObjectsWhereSource(
    MonitoringRelationshipObjectGenericCriteria^ criteria,
    TraversalDepth traversalDepth
)
[<ObsoleteAttribute("Use ManagementGrou.EntityObjects.GetMonitoringRelationshipObjectsWhereSource")>]
member GetMonitoringRelationshipObjectsWhereSource : 
        criteria:MonitoringRelationshipObjectGenericCriteria *
        traversalDepth:TraversalDepth -> ReadOnlyCollection<MonitoringRelationshipObject>
<ObsoleteAttribute("Use ManagementGrou.EntityObjects.GetMonitoringRelationshipObjectsWhereSource")>
Public Function GetMonitoringRelationshipObjectsWhereSource (
    criteria As MonitoringRelationshipObjectGenericCriteria,
    traversalDepth As TraversalDepth
) As ReadOnlyCollection(Of MonitoringRelationshipObject)

Parameters

  • traversalDepth
    Type: Microsoft.EnterpriseManagement.Common.TraversalDepth

    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.

Return Value

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

Returns ReadOnlyCollection<T> of MonitoringRelationshipObject objects.

Remarks

Gets the relationships for which this partial monitoring object is a source in the relationship. Gets the relationships from the current PartialMonitoringObject object, or optionally from related PartialMonitoringObject objects.

You can iterate through the collection to obtain any specific MonitoringRelationshipObject object.

The criteria parameter is used to identify monitoring relationships that will pass through the filter. Monitoring relationships within the returned collection meet this filter requirement.

The traversalDepth specifies whether to return a relationship object from entities contained by this object. A depth of Onelevel implies that the instance of the given class is used, and a Recursive depth implies that all the subclasses are also used.

See Also

GetMonitoringRelationshipObjectsWhereSource Overload
PartialMonitoringObject Class
Microsoft.EnterpriseManagement.Monitoring Namespace

Return to top