Retrieves a collection of monitoring relationship objects that match the specified filter from the specified source class. Namespace: Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in microsoft.enterprisemanagement.operationsmanager.dll)

Usage

Visual Basic
Dim instance As ManagementGroup
Dim criteria As MonitoringRelationshipObjectGenericCriteria
Dim sourceMonitoringClass As MonitoringClass
Dim returnValue As ReadOnlyCollection(Of MonitoringRelationshipObject)

returnValue = instance.GetMonitoringRelationshipObjectsBySourceMonitoringClass(criteria, sourceMonitoringClass)

Syntax

Visual Basic
Public Function GetMonitoringRelationshipObjectsBySourceMonitoringClass ( _
		criteria As MonitoringRelationshipObjectGenericCriteria, _
		sourceMonitoringClass As MonitoringClass _
) As ReadOnlyCollection(Of MonitoringRelationshipObject)
C#
public ReadOnlyCollection<MonitoringRelationshipObject> GetMonitoringRelationshipObjectsBySourceMonitoringClass (
		MonitoringRelationshipObjectGenericCriteria criteria,
		MonitoringClass sourceMonitoringClass
)
C++
public:
ReadOnlyCollection<MonitoringRelationshipObject^>^ GetMonitoringRelationshipObjectsBySourceMonitoringClass (
		MonitoringRelationshipObjectGenericCriteria^ criteria, 
		MonitoringClass^ sourceMonitoringClass
)
J#
public ReadOnlyCollection<MonitoringRelationshipObject> GetMonitoringRelationshipObjectsBySourceMonitoringClass (
		MonitoringRelationshipObjectGenericCriteria criteria, 
		MonitoringClass sourceMonitoringClass
)
JScript
public function GetMonitoringRelationshipObjectsBySourceMonitoringClass (
		criteria : MonitoringRelationshipObjectGenericCriteria, 
		sourceMonitoringClass : MonitoringClass
) : ReadOnlyCollection<MonitoringRelationshipObject>

Parameters

criteria

A value specifying the kind of monitoring relationship objects.

sourceMonitoringClass

The monitoring class, along with all its derived classes, defining the range of the returned results. The results contain monitoring relationship objects that have this class as the source class.

Return Value

A read-only collection of MonitoringRelationshipObject objects.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP

Target Platforms

Windows Server 2008,Windows Server 2003,Windows Vista,Windows XP

See Also