Export (0) Print
Expand All

ManagementClass.GetRelationshipClasses Method

Retrieves relationship classes that relate the class to others.

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

member GetRelationshipClasses : unit -> ManagementObjectCollection

Return Value

Type: System.Management.ManagementObjectCollection
A collection of association classes that relate the class to any other class.

.NET Framework Security

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft