ManagementClass.Derivation 属性  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取一个数组,该数组包含继承层次结构中从该类到层次结构顶部的所有 WMI 类。
public:
 property System::Collections::Specialized::StringCollection ^ Derivation { System::Collections::Specialized::StringCollection ^ get(); };
	public System.Collections.Specialized.StringCollection Derivation { get; }
	member this.Derivation : System.Collections.Specialized.StringCollection
	Public ReadOnly Property Derivation As StringCollection
	属性值
一个字符串集合,它包含该类的继承层次结构中所有 WMI 类的名称。
示例
以下示例演示如何使用ManagementClass构造函数初始化ManagementClass变量,然后从传递到构造函数的 WMI 类中获取继承层次结构中的所有类,并将其传递到层次结构的顶部。
using System;
using System.Management;
public class Example
{
    public static void Main()
    {
        ManagementClass c =
            new ManagementClass("Win32_LogicalDisk");
        foreach (string s in c.Derivation)
            Console.WriteLine("Further derived from : {0}", s);
        return;
    }
}
Imports System.Management
Public Class Sample
    Public Shared Function Main(ByVal args() _
        As String) As Integer
        Dim c As New ManagementClass("Win32_LogicalDisk")
        Dim s As String
        For Each s In c.Derivation
            Console.WriteLine("Further derived from : " & s)
        Next
        Return 0
    End Function
End Class
	注解
此属性为只读。
.NET Framework 安全性
对直接调用方的完全信任。 此成员不能由部分信任的代码使用。 有关详细信息,请参阅 使用部分受信任的代码中的库。