MonitoringClass.GetRelatedMonitoringClasses Method

Definition

Caution

Please use GetRelatedClasses() instead

Retrieves all the monitoring object classes related to this type using the provided relationship type.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Configuration::MonitoringClass ^> ^ GetRelatedMonitoringClasses(Microsoft::EnterpriseManagement::Configuration::DerivedClassTraversalDepth derivedClassTraversalDepth, Microsoft::EnterpriseManagement::Configuration::MonitoringRelationshipClass ^ relationshipClass, Microsoft::EnterpriseManagement::Common::TraversalDepth traversalDepth);
[System.Obsolete("Please use GetRelatedClasses() instead")]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Configuration.MonitoringClass> GetRelatedMonitoringClasses (Microsoft.EnterpriseManagement.Configuration.DerivedClassTraversalDepth derivedClassTraversalDepth, Microsoft.EnterpriseManagement.Configuration.MonitoringRelationshipClass relationshipClass, Microsoft.EnterpriseManagement.Common.TraversalDepth traversalDepth);
member this.GetRelatedMonitoringClasses : Microsoft.EnterpriseManagement.Configuration.DerivedClassTraversalDepth * Microsoft.EnterpriseManagement.Configuration.MonitoringRelationshipClass * Microsoft.EnterpriseManagement.Common.TraversalDepth -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Configuration.MonitoringClass>
Public Function GetRelatedMonitoringClasses (derivedClassTraversalDepth As DerivedClassTraversalDepth, relationshipClass As MonitoringRelationshipClass, traversalDepth As TraversalDepth) As ReadOnlyCollection(Of MonitoringClass)

Parameters

derivedClassTraversalDepth
DerivedClassTraversalDepth

Indicates whether or not to include this classes derived classes as targets for the RelationshipType.

relationshipClass
MonitoringRelationshipClass

The relationship class to retrieve related monitoring object classes by. The type and any relationship classes derived from it will be used.

traversalDepth
TraversalDepth

Whether to recurse down the relationship hierarchy and include classes related to classes related to this type and so on.

Returns

The MonitoringClasss related to this type requested.

Attributes

Applies to