Retrieves the relationship class objects of which this monitoring class is a target in the relationship, optionally including derived classes. Namespace: Microsoft.EnterpriseManagement.Configuration
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in microsoft.enterprisemanagement.operationsmanager.dll)

Usage

Visual Basic
Dim instance As MonitoringClass
Dim derivedClassTraversalDepth As DerivedClassTraversalDepth
Dim returnValue As ReadOnlyCollection(Of MonitoringRelationshipClass)

returnValue = instance.GetMonitoringRelationshipClassesWhereTarget(derivedClassTraversalDepth)

Syntax

Visual Basic
Public Function GetMonitoringRelationshipClassesWhereTarget ( _
		derivedClassTraversalDepth As DerivedClassTraversalDepth _
) As ReadOnlyCollection(Of MonitoringRelationshipClass)
C#
public ReadOnlyCollection<MonitoringRelationshipClass> GetMonitoringRelationshipClassesWhereTarget (
		DerivedClassTraversalDepth derivedClassTraversalDepth
)
C++
public:
ReadOnlyCollection<MonitoringRelationshipClass^>^ GetMonitoringRelationshipClassesWhereTarget (
		DerivedClassTraversalDepth derivedClassTraversalDepth
)
J#
public ReadOnlyCollection<MonitoringRelationshipClass> GetMonitoringRelationshipClassesWhereTarget (
		DerivedClassTraversalDepth derivedClassTraversalDepth
)
JScript
public function GetMonitoringRelationshipClassesWhereTarget (
		derivedClassTraversalDepth : DerivedClassTraversalDepth
) : ReadOnlyCollection<MonitoringRelationshipClass>

Parameters

derivedClassTraversalDepth

Determines whether to also return relationship classes of which the derived classes of this monitoring class are a target in the relationship. A value of None does not include derived classes. A value of Recursive includes derived classes.

Return Value

A read-only collection of MonitoringRelationshipClass 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