Partager via


ManagementPackClass.GetRelationships Method (DerivedClassTraversalDepth)

Retrieves all the relationship classes of which this monitoring class is a part.

Namespace: Microsoft.EnterpriseManagement.Configuration
Assembly: Microsoft.EnterpriseManagement.Core (in microsoft.enterprisemanagement.core.dll)

Usage

'Usage
Dim instance As ManagementPackClass
Dim derivedClassTraversalDepth As DerivedClassTraversalDepth
Dim returnValue As IList(Of ManagementPackRelationship)

returnValue = instance.GetRelationships(derivedClassTraversalDepth)

Syntax

'Declaration
Public Function GetRelationships ( _
    derivedClassTraversalDepth As DerivedClassTraversalDepth _
) As IList(Of ManagementPackRelationship)
public IList<ManagementPackRelationship> GetRelationships (
    DerivedClassTraversalDepth derivedClassTraversalDepth
)
public:
IList<ManagementPackRelationship^>^ GetRelationships (
    DerivedClassTraversalDepth derivedClassTraversalDepth
)
public IList<ManagementPackRelationship> GetRelationships (
    DerivedClassTraversalDepth derivedClassTraversalDepth
)
public function GetRelationships (
    derivedClassTraversalDepth : DerivedClassTraversalDepth
) : IList<ManagementPackRelationship>

Parameters

  • derivedClassTraversalDepth
    Indicates whether to include this class’s derived classes as targets for the relationship type.

Return Value

All the relationship classes.

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 Vista, Windows Server 2003, and

Target Platforms

Windows Server 2008,Windows Server 2003

See Also

Reference

ManagementPackClass Class
ManagementPackClass Members
Microsoft.EnterpriseManagement.Configuration Namespace