[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]Retrieves all the monitoring object classes that are parent classes to this type using the provided relationship type. Namespace: Microsoft.EnterpriseManagement.Configuration
Assembly: Microsoft.EnterpriseManagement.Core (in microsoft.enterprisemanagement.core.dll)

Usage

Visual Basic
Dim instance As ManagementPackClass
Dim derivedClassTraversalDepth As DerivedClassTraversalDepth
Dim relationshipClass As ManagementPackRelationship
Dim traversalDepth As TraversalDepth
Dim returnValue As IList(Of ManagementPackClass)

returnValue = instance.GetParentClasses(derivedClassTraversalDepth, relationshipClass, traversalDepth)

Syntax

Visual Basic
Public Function GetParentClasses ( _
		derivedClassTraversalDepth As DerivedClassTraversalDepth, _
		relationshipClass As ManagementPackRelationship, _
		traversalDepth As TraversalDepth _
) As IList(Of ManagementPackClass)
C#
public IList<ManagementPackClass> GetParentClasses (
		DerivedClassTraversalDepth derivedClassTraversalDepth,
		ManagementPackRelationship relationshipClass,
		TraversalDepth traversalDepth
)
C++
public:
IList<ManagementPackClass^>^ GetParentClasses (
		DerivedClassTraversalDepth derivedClassTraversalDepth, 
		ManagementPackRelationship^ relationshipClass, 
		TraversalDepth traversalDepth
)
J#
public IList<ManagementPackClass> GetParentClasses (
		DerivedClassTraversalDepth derivedClassTraversalDepth, 
		ManagementPackRelationship relationshipClass, 
		TraversalDepth traversalDepth
)
JScript
public function GetParentClasses (
		derivedClassTraversalDepth : DerivedClassTraversalDepth, 
		relationshipClass : ManagementPackRelationship, 
		traversalDepth : TraversalDepth
) : IList<ManagementPackClass>

Parameters

derivedClassTraversalDepth

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

relationshipClass

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

traversalDepth

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

Return Value

Returns IList. All the monitoring object classes that are parent classes to this type using the provided relationship type.

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

See Also