ManagementClass.Derivation プロパティ

定義

このクラスから階層の最上位までの継承階層ですべての 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 のセキュリティ

直前の呼び出し元に対する完全な信頼。 このメンバーは、部分的に信頼されているコードから使用することはできません。 詳細については、「 部分信頼コードからのライブラリの使用」を参照してください。

適用対象