ManagementObject::GetRelated Method ()
.NET Framework (current version)
Gets a collection of objects related to the object (associators).
Assembly: System.Management (in System.Management.dll)
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.
.NET Framework
Available since 1.1
Available since 1.1
Show: