ManagementPackClass.GetRelatedClasses Method

Definition

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

public:
 System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Configuration::ManagementPackClass ^> ^ GetRelatedClasses(Microsoft::EnterpriseManagement::Configuration::DerivedClassTraversalDepth derivedClassTraversalDepth, Microsoft::EnterpriseManagement::Configuration::ManagementPackRelationship ^ relationshipClass, Microsoft::EnterpriseManagement::Common::TraversalDepth traversalDepth);
public System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackClass> GetRelatedClasses (Microsoft.EnterpriseManagement.Configuration.DerivedClassTraversalDepth derivedClassTraversalDepth, Microsoft.EnterpriseManagement.Configuration.ManagementPackRelationship relationshipClass, Microsoft.EnterpriseManagement.Common.TraversalDepth traversalDepth);
member this.GetRelatedClasses : Microsoft.EnterpriseManagement.Configuration.DerivedClassTraversalDepth * Microsoft.EnterpriseManagement.Configuration.ManagementPackRelationship * Microsoft.EnterpriseManagement.Common.TraversalDepth -> System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackClass>
Public Function GetRelatedClasses (derivedClassTraversalDepth As DerivedClassTraversalDepth, relationshipClass As ManagementPackRelationship, traversalDepth As TraversalDepth) As IList(Of ManagementPackClass)

Parameters

derivedClassTraversalDepth
DerivedClassTraversalDepth

Indicates whether to include the derived classes of this class as targets for the relationship type.

relationshipClass
ManagementPackRelationship

The relationship class to retrieve. You can use the type and any relationship classes derived from it.

traversalDepth
TraversalDepth

Indicates whether to recurse down the relationship hierarchy and include classes that are parents to this type and so on.

Returns

All the monitoring object classes related to this type.

Applies to