Assembly: Microsoft.EnterpriseManagement.OperationsManager (in microsoft.enterprisemanagement.operationsmanager.dll)
Usage
Visual Basic |
---|
Dim instance As PartialMonitoringObject Dim criteria As MonitoringRelationshipObjectGenericCriteria Dim traversalDepth As TraversalDepth Dim returnValue As ReadOnlyCollection(Of MonitoringRelationshipObject) returnValue = instance.GetMonitoringRelationshipObjectsWhereSource(criteria, traversalDepth) |
Syntax
Visual Basic |
---|
Public Function GetMonitoringRelationshipObjectsWhereSource ( _ criteria As MonitoringRelationshipObjectGenericCriteria, _ traversalDepth As TraversalDepth _ ) As ReadOnlyCollection(Of MonitoringRelationshipObject) |
C# |
---|
public ReadOnlyCollection<MonitoringRelationshipObject> GetMonitoringRelationshipObjectsWhereSource ( MonitoringRelationshipObjectGenericCriteria criteria, TraversalDepth traversalDepth ) |
C++ |
---|
public: ReadOnlyCollection<MonitoringRelationshipObject^>^ GetMonitoringRelationshipObjectsWhereSource ( MonitoringRelationshipObjectGenericCriteria^ criteria, TraversalDepth traversalDepth ) |
J# |
---|
public ReadOnlyCollection<MonitoringRelationshipObject> GetMonitoringRelationshipObjectsWhereSource ( MonitoringRelationshipObjectGenericCriteria criteria, TraversalDepth traversalDepth ) |
JScript |
---|
public function GetMonitoringRelationshipObjectsWhereSource ( criteria : MonitoringRelationshipObjectGenericCriteria, traversalDepth : TraversalDepth ) : ReadOnlyCollection<MonitoringRelationshipObject> |
Parameters
- criteria
-
A value that specifies the kind of monitoring relationship objects.
- 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
A read-only collection of MonitoringRelationshipObject objects.Remarks
Gets the relationships of which this partial monitoring object is a source in the relationship. Gets the relationships from the current PartialMonitoringObject, or optionally from related PartialMonitoringObject objects.
You can iterate through the collection to obtain any specific MonitoringRelationshipObject.
The criteria 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 relationship object from entities contained by this object. A depth of Onelevel implies the instance of the given class is used, and a Recursive depth implies all the subclasses are used as well.