ManagementClass::GetRelationshipClasses Method ()

 

Retrieves relationship classes that relate the class to others.

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

public:
ManagementObjectCollection^ GetRelationshipClasses()

Return Value

Type: System.Management::ManagementObjectCollection^

A collection of association classes that relate the class to any other class.

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.

The following example uses the GetRelationshipClasses method to list the relationship classes to the CIM_LogicalDisk class. For more information, see "CIM_LogicalDisk" in the Windows Management Instrumentation documentation in the MSDN Library at http://msdn.microsoft.com/library.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: