ManagementObject.GetRelated Method ()

 

Gets a collection of objects related to the object (associators).

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

member GetRelated : unit -> ManagementObjectCollection

Return Value

Type: System.Management.ManagementObjectCollection

A ManagementObjectCollection containing the related objects.

The operation is equivalent to an ASSOCIATORS OF query where ResultClass = relatedClass.

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 calls the GetRelated method to get a collection of objects related to an instance of the ManagementObject class.

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

.NET Framework
Available since 1.1
Return to top
Show: