次の方法で共有


ManagementObject.ClassPath プロパティ

オブジェクトのクラスへのパスを取得または設定します。

Overrides Public ReadOnly Property ClassPath As ManagementPath
[C#]
public override ManagementPath ClassPath {get;}
[C++]
public: __property ManagementPath* get_ClassPath();
[JScript]
public override function get ClassPath() : ManagementPath;

プロパティ値

オブジェクトのクラスへのパスを表す ManagementPath

解説

このプロパティは読み取り専用です。

使用例

 
ManagementObject o = new ManagementObject("MyClass.Name='abc'"); 

//Get the class definition for the object above.
ManagementClass c = new ManagementClass(o.ClassPath);
   
[Visual Basic] 
Dim o As New ManagementObject("MyClass.Name=""abc""")

'Get the class definition for the object above.
Dim c As New ManagementClass(o.ClassPath);
   

[C++, JScript] C++ および JScript のサンプルはありません。Visual Basic および C# のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン 言語のフィルタ をクリックします。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

.NET Framework セキュリティ:

参照

ManagementObject クラス | ManagementObject メンバ | System.Management 名前空間