ManagementClass.GetRelationshipClasses Method (String)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Retrieves relationship classes that relate the class to others, where the endpoint class is the specified class.

Namespace:   System.Management
Assembly:  System.Management (in System.Management.dll)

public ManagementObjectCollection GetRelationshipClasses(
	string relationshipClass
)

Parameters

relationshipClass
Type: System.String

The endpoint class for all relationship classes returned.

Return Value

Type: System.Management.ManagementObjectCollection

A collection of association classes that relate the class to the specified class. For more information about relationship classes, see "ASSOCIATORS OF Statement" in the Windows Management Instrumentation documentation in the MSDN Library at http://msdn.microsoft.com/library.

Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.

.NET Framework
Available since 1.1
Return to top
Show: