ManagementObjectとは? わかりやすく解説

ManagementObject イベント


ManagementObject クラス

WMI インスタンスを表します。

名前空間: System.Management
アセンブリ: System.Management (system.management.dll 内)
構文構文

<SerializableAttribute> _
Public Class ManagementObject
    Inherits ManagementBaseObject
    Implements ICloneable
Dim instance As ManagementObject
[SerializableAttribute] 
public class ManagementObject : ManagementBaseObject,
 ICloneable
[SerializableAttribute] 
public ref class ManagementObject : public
 ManagementBaseObject, ICloneable
/** @attribute SerializableAttribute() */ 
public class ManagementObject extends ManagementBaseObject
 implements ICloneable
SerializableAttribute 
public class ManagementObject extends
 ManagementBaseObject implements ICloneable
継承階層継承階層
System.Object
   System.MarshalByRefObject
     System.ComponentModel.Component
       System.Management.ManagementBaseObject
        System.Management.ManagementObject
           System.Management.ManagementClass
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

ManagementObject コンストラクタ ()

ManagementObject クラスの新しいインスタンスを初期化します。これは既定のコンストラクタです。

名前空間: System.Management
アセンブリ: System.Management (system.management.dll 内)
構文構文

Dim instance As New ManagementObject
public ManagementObject ()
public:
ManagementObject ()
public ManagementObject ()
public function ManagementObject ()
使用例使用例

既定のコンストラクタを使用して ManagementObject クラスの新しいインスタンスを初期化する例を次に示します。

Imports System
Imports System.Management

Class Sample_ManagementClass
    Public Overloads Shared
 Function Main( _
        ByVal args() As String)
 As Integer

        Dim o As New ManagementObject

        Dim mp As New _
            ManagementPath("Win32_LogicalDisk='c:'")

        ' Now set the path on this object to
        ' bind it to a 'real' manageable entity
        o.Path = mp

        'Now it can be used 
        Console.WriteLine(o("FreeSpace"))

        Return 0
    End Function
End Class
using System;
using System.Management;
   
class Sample
{
    public static int Main(string[]
 args) 
    {
        ManagementObject o = new ManagementObject();

        // Now set the path on this object to
        // bind it to a 'real' manageable entity
        o.Path = 
            new ManagementPath("Win32_LogicalDisk='c:'");
 

        //Now it can be used 
        Console.WriteLine(o["FreeSpace"]);
        
        return 0;
    }
}
.NET Framework のセキュリティ.NET Framework のセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

ManagementObject コンストラクタ (String, String, ObjectGetOptions)

指定したオプションを含む、指定した WMI パスにバインドする ManagementObject クラスの新しいインスタンスを初期化します。スコープとパスは、文字列として指定します。

名前空間: System.Management
アセンブリ: System.Management (system.management.dll 内)
構文構文

Public Sub New ( _
    scopeString As String, _
    pathString As String, _
    options As ObjectGetOptions _
)
Dim scopeString As String
Dim pathString As String
Dim options As ObjectGetOptions

Dim instance As New ManagementObject(scopeString,
 pathString, options)
public ManagementObject (
    string scopeString,
    string pathString,
    ObjectGetOptions options
)
public:
ManagementObject (
    String^ scopeString, 
    String^ pathString, 
    ObjectGetOptions^ options
)
public ManagementObject (
    String scopeString, 
    String pathString, 
    ObjectGetOptions options
)
public function ManagementObject (
    scopeString : String, 
    pathString : String, 
    options : ObjectGetOptions
)

パラメータ

scopeString

WMI オブジェクトのスコープ。

pathString

WMI オブジェクト パス。

options

WMI オブジェクトを取得するための追加のオプションを表す ObjectGetOptions。

解説解説
使用例使用例

特定の WMI パスおよびオプションを使用して ManagementObject クラスの新しいインスタンスを初期化する例を次に示します。

Imports System
Imports System.Management

Class Sample_ManagementClass
    Public Overloads Shared
 Function Main( _
        ByVal args() As String)
 As Integer

        Dim opt As New ObjectGetOptions(
 _
            Nothing, System.TimeSpan.MaxValue, True)
        Dim o As New ManagementObject(
 _
            "root\MyNamespace", "MyClass",
 opt)

        Return 0
    End Function
End Class
using System;
using System.Management;
   
class Sample
{
    public static int Main(string[]
 args) 
    {
        ObjectGetOptions opt = 
            new ObjectGetOptions(null, System.TimeSpan.MaxValue,
 true);
        ManagementObject o = 
            new ManagementObject(
            "root\\MyNamespace", "MyClass", opt);

        return 0;
    }
}
.NET Framework のセキュリティ.NET Framework のセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

ManagementObject コンストラクタ (SerializationInfo, StreamingContext)

ManagementObject クラスのシリアル化可能な新しいインスタンスを初期化します。

名前空間: System.Management
アセンブリ: System.Management (system.management.dll 内)
構文構文

Protected Sub New ( _
    info As SerializationInfo, _
    context As StreamingContext _
)
Dim info As SerializationInfo
Dim context As StreamingContext

Dim instance As New ManagementObject(info,
 context)
protected ManagementObject (
    SerializationInfo info,
    StreamingContext context
)
protected:
ManagementObject (
    SerializationInfo^ info, 
    StreamingContext context
)
protected ManagementObject (
    SerializationInfo info, 
    StreamingContext context
)
protected function ManagementObject (
    info : SerializationInfo, 
    context : StreamingContext
)

パラメータ

info

データを読み込む先の SerializationInfo。

context

このシリアル化のシリアル化先 (StreamingContext を参照)。

.NET Framework のセキュリティ.NET Framework のセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

ManagementObject コンストラクタ (ManagementPath, ObjectGetOptions)

指定した追加のオプションを含む、指定した WMI パスにバインドする ManagementObject クラスの新しいインスタンスを初期化します。

名前空間: System.Management
アセンブリ: System.Management (system.management.dll 内)
構文構文

Public Sub New ( _
    path As ManagementPath, _
    options As ObjectGetOptions _
)
Dim path As ManagementPath
Dim options As ObjectGetOptions

Dim instance As New ManagementObject(path,
 options)
public ManagementObject (
    ManagementPath path,
    ObjectGetOptions options
)
public:
ManagementObject (
    ManagementPath^ path, 
    ObjectGetOptions^ options
)
public ManagementObject (
    ManagementPath path, 
    ObjectGetOptions options
)
public function ManagementObject (
    path : ManagementPath, 
    options : ObjectGetOptions
)

パラメータ

path

WMI パスを格納している ManagementPath。

options

WMI オブジェクトにバインドするための追加のオプションを格納している ObjectGetOptions。既定のオプションを使用する場合、このパラメータは null にすることができます。

使用例使用例

特定の WMI パスにバインドされた ManagementObject クラスの新しいインスタンスを初期化する例を次に示します。

Imports System
Imports System.Management

Class Sample_ManagementClass
    Public Overloads Shared
 Function Main( _
        ByVal args() As String)
 As Integer

        Dim p As New ManagementPath("Win32_Service")

        ' Set options for no context info
        ' but requests amended qualifiers 
        ' to be contained in the object
        Dim opt As New ObjectGetOptions(
 _
            Nothing, TimeSpan.MaxValue, True)

        Dim c As New ManagementClass(p,
 opt)

        Console.WriteLine(c.Qualifiers("Description").Value)

        Return 0
    End Function
End Class
using System;
using System.Management;
   
class Sample
{
    public static int Main(string[]
 args) 
    {
        ManagementPath p = 
            new ManagementPath("Win32_Service");
   
        // Set options for no context info
        // but requests amended qualifiers 
        // to be contained in the object
        ObjectGetOptions opt = 
            new ObjectGetOptions(
            null, System.TimeSpan.MaxValue, true);
    

        ManagementClass c = 
            new ManagementClass(p, opt);
   
        Console.WriteLine(
            c.Qualifiers["Description"].Value);
        
        return 0;
    }
}
.NET Framework のセキュリティ.NET Framework のセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

ManagementObject コンストラクタ (ManagementScope, ManagementPath, ObjectGetOptions)

指定したオプションを含む、指定した WMI パスにバインドする ManagementObject クラスの新しいインスタンスを初期化します。

名前空間: System.Management
アセンブリ: System.Management (system.management.dll 内)
構文構文

Public Sub New ( _
    scope As ManagementScope, _
    path As ManagementPath, _
    options As ObjectGetOptions _
)
Dim scope As ManagementScope
Dim path As ManagementPath
Dim options As ObjectGetOptions

Dim instance As New ManagementObject(scope,
 path, options)
public ManagementObject (
    ManagementScope scope,
    ManagementPath path,
    ObjectGetOptions options
)
public:
ManagementObject (
    ManagementScope^ scope, 
    ManagementPath^ path, 
    ObjectGetOptions^ options
)
public ManagementObject (
    ManagementScope scope, 
    ManagementPath path, 
    ObjectGetOptions options
)
public function ManagementObject (
    scope : ManagementScope, 
    path : ManagementPath, 
    options : ObjectGetOptions
)

パラメータ

scope

WMI オブジェクトが存在するスコープを表す ManagementScope。このバージョンでは、スコープは WMI 名前空間だけに設定できます。

path

管理可能オブジェクトへの WMI パスを表す ManagementPath。

options

オブジェクトを取得するための追加のオプションを指定する ObjectGetOptions。

解説解説

WMI パスには相対パスまたは完全パスを指定できるため、指定したスコープとパス間に競合が生じることがあります。ただし、スコープと相対 WMI パスを指定した場合、競合は生じません。生じうる競合の例を次に示します。

スコープを指定せず、相対 WMI パスを指定する場合、スコープは既定でローカル コンピュータの DefaultPath になります。

スコープを指定せず、完全 WMI パスを指定する場合、スコープは完全パスのスコープ部分から推論されます。たとえば、完全 WMI パスの \\MyMachine\root\MyNamespace:MyClass.Name='abc' は、スコープ '\\MyMachine\root\MyNamespace' の WMI オブジェクト 'MyClass.Name='abc'" を表します。

スコープを指定し、完全 WMI パスを指定する場合、そのスコープは完全パスのスコープ部分をオーバーライドします。たとえば、\\MyMachine\root\MyScope のスコープを指定し、\\MyMachine\root\MyNamespace:MyClass.Name='abc' の完全パスを指定した場合は、object: \\MyMachine\root\MyScope:MyClass.Name= 'abc' が検索されます (完全パスのスコープ部分は無視されます)。

.NET Framework のセキュリティ
使用例使用例

特定の WMI パスにバインドされた ManagementObject クラスの新しいインスタンスを初期化する例を次に示します。

Imports System
Imports System.Management

Class Sample_ManagementClass
    Public Overloads Shared
 Function Main( _
        ByVal args() As String)
 As Integer

        Dim s As New ManagementScope(
 _
            "\\MyMachine\root\cimv2")
        Dim p As New ManagementPath(
 _
            "Win32_Service")

        ' Set options for no context info,
        ' but requests amended qualifiers 
        ' to be contained in the object
        Dim opt As ObjectGetOptions
        opt = New ObjectGetOptions( _
                Nothing, TimeSpan.MaxValue, True)

        Dim o As ManagementObject
        o = New ManagementObject(s, p, opt)

        Console.WriteLine(o.Qualifiers("Description").Value)

        Return 0
    End Function
End Class
using System;
using System.Management;
   
class Sample
{
    public static int Main(string[]
 args) 
    {
        ManagementScope s = new ManagementScope(
            "\\\\MyMachine\\root\\cimv2");
        ManagementPath p = 
            new ManagementPath(
            "Win32_Service");

        // Set options for no context info,
        // but requests amended qualifiers 
        // to be contained in the object
        ObjectGetOptions opt = 
            new ObjectGetOptions(
            null, TimeSpan.MaxValue, true);
 

        ManagementObject o = new ManagementObject(s, p, opt);

        Console.WriteLine(o.Qualifiers["Description"].Value);

        return 0;
    }
}
.NET Framework のセキュリティ.NET Framework のセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

ManagementObject コンストラクタ (String, ObjectGetOptions)

指定した追加のオプションを含む、指定した WMI パスにバインドする ManagementObject クラスの新しいインスタンスを初期化します。このバリアントでは、パスは文字列として指定できます。

名前空間: System.Management
アセンブリ: System.Management (system.management.dll 内)
構文構文

Public Sub New ( _
    path As String, _
    options As ObjectGetOptions _
)
Dim path As String
Dim options As ObjectGetOptions

Dim instance As New ManagementObject(path,
 options)
public ManagementObject (
    string path,
    ObjectGetOptions options
)
public:
ManagementObject (
    String^ path, 
    ObjectGetOptions^ options
)
public ManagementObject (
    String path, 
    ObjectGetOptions options
)
public function ManagementObject (
    path : String, 
    options : ObjectGetOptions
)

パラメータ

path

オブジェクトへの WMI パス。

options

指定した WMI オブジェクトを取得するためのオプションを表す ObjectGetOptions。

使用例使用例

ManagementObject クラスの新しいインスタンスを初期化する例を次に示します。

Imports System
Imports System.Management

Class Sample_ManagementClass
    Public Overloads Shared
 Function Main( _
        ByVal args() As String)
 As Integer

        ' Set options for no context info, 
        ' but requests amended qualifiers
        ' to be contained in the object
        Dim opt As New ObjectGetOptions(
 _
            Nothing, System.TimeSpan.MaxValue, True)

        Dim o As New ManagementObject(
 _
            "Win32_Service", opt)

        Console.WriteLine(o.GetQualifierValue("Description"))

        Return 0
    End Function
End Class
using System;
using System.Management;
   
class Sample
{
    public static int Main(string[]
 args) 
    {
        // Set options for no context info, 
        // but requests amended qualifiers
        // to be contained in the object
        ObjectGetOptions opt = 
            new ObjectGetOptions(null, System.TimeSpan.MaxValue,
 true); 

        ManagementObject o = 
            new ManagementObject(
            "Win32_Service", opt);
   
        Console.WriteLine(o.GetQualifierValue("Description"));
        
        return 0;
    }
}
.NET Framework のセキュリティ.NET Framework のセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

ManagementObject コンストラクタ

ManagementObject クラスの新しいインスタンスを初期化します。
オーバーロードの一覧オーバーロードの一覧

名前 説明
ManagementObject () ManagementObject クラスの新しいインスタンスを初期化します。これは既定のコンストラクタです。
ManagementObject (ManagementPath) 指定した WMI (Windows Management Instrumentation) オブジェクト パスの ManagementObject クラスの新しいインスタンスを初期化します。パスは、ManagementPath として指定します。
ManagementObject (String) 指定した WMI (Windows Management Instrumentation) オブジェクト パスの ManagementObject クラスの新しいインスタンスを初期化します。パスは、文字列として指定します。
ManagementObject (ManagementPath, ObjectGetOptions) 指定した追加のオプションを含む、指定した WMI パスにバインドする ManagementObject クラスの新しいインスタンスを初期化します。
ManagementObject (SerializationInfo, StreamingContext) ManagementObject クラスのシリアル化可能な新しいインスタンスを初期化します。
ManagementObject (String, ObjectGetOptions) 指定した追加のオプションを含む、指定した WMI パスにバインドする ManagementObject クラスの新しいインスタンスを初期化します。このバリアントでは、パスは文字列として指定できます。
ManagementObject (ManagementScope, ManagementPath, ObjectGetOptions) 指定したオプションを含む、指定した WMI パスにバインドする ManagementObject クラスの新しいインスタンスを初期化します。
ManagementObject (String, String, ObjectGetOptions) 指定したオプションを含む、指定した WMI パスにバインドする ManagementObject クラスの新しいインスタンスを初期化します。スコープとパスは、文字列として指定します。
参照参照

関連項目

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

ManagementObject コンストラクタ (ManagementPath)

指定した WMI (Windows Management Instrumentation) オブジェクト パスの ManagementObject クラスの新しいインスタンスを初期化します。パスは、ManagementPath として指定します。

名前空間: System.Management
アセンブリ: System.Management (system.management.dll 内)
構文構文

Public Sub New ( _
    path As ManagementPath _
)
Dim path As ManagementPath

Dim instance As New ManagementObject(path)
public ManagementObject (
    ManagementPath path
)
public:
ManagementObject (
    ManagementPath^ path
)
public ManagementObject (
    ManagementPath path
)
public function ManagementObject (
    path : ManagementPath
)

パラメータ

path

WMI オブジェクトのパスを格納している ManagementPath。

使用例使用例

指定した WMI オブジェクト パスを使用して ManagementObject クラスの新しいインスタンスを初期化する例を次に示します。

Imports System
Imports System.Management

Class Sample_ManagementClass
    Public Overloads Shared
 Function Main( _
        ByVal args() As String)
 As Integer

        Dim p As New ManagementPath(
 _
            "Win32_Service.Name=""Alerter""")
        Dim o As New ManagementObject(p)

        'Now it can be used 
        Console.WriteLine(o("Name"))

        Return 0
    End Function
End Class
using System;
using System.Management;
   
class Sample
{
    public static int Main(string[]
 args) 
    {
        ManagementPath p = 
            new ManagementPath(
            "Win32_Service.Name='Alerter'");
        ManagementObject o = new ManagementObject(p);

        //Now it can be used 
        Console.WriteLine(o["Name"]);
        
        return 0;
    }
}
.NET Framework のセキュリティ.NET Framework のセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

ManagementObject コンストラクタ (String)

指定した WMI (Windows Management Instrumentation) オブジェクト パスの ManagementObject クラスの新しいインスタンスを初期化します。パスは、文字列として指定します。

名前空間: System.Management
アセンブリ: System.Management (system.management.dll 内)
構文構文

public ManagementObject (
    string path
)
public:
ManagementObject (
    String^ path
)
public ManagementObject (
    String path
)
public function ManagementObject (
    path : String
)

パラメータ

path

WMI パス。

解説解説
使用例使用例

ManagementObject クラスの新しいインスタンスを初期化する例を次に示します。

Imports System
Imports System.Management

Class Sample_ManagementClass
    Public Overloads Shared
 Function Main( _
        ByVal args() As String)
 As Integer

        Dim o As New ManagementObject(
 _
    "Win32_Service.Name=""Alerter""")

        ' or with a full path :

        Dim mObj As New
 ManagementObject( _
            "\\\\MyServer\\root\\MyApp:MyClass.Key=""abc""")

        Return 0
    End Function
End Class
using System;
using System.Management;
   
class Sample
{
    public static int Main(string[]
 args) 
    {
        ManagementObject o =
            new ManagementObject("Win32_Service.Name='Alerter'");
   
        //or with a full path :
   
        ManagementObject mObj =
            new ManagementObject(
            "\\\\MyServer\\root\\MyApp:MyClass.Key='abc'");

        return 0;
    }
}
.NET Framework のセキュリティ.NET Framework のセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

ManagementObject プロパティ


パブリック プロパティパブリック プロパティ

( プロテクト プロパティ も参照)
  名前 説明
パブリック プロパティ ClassPath オーバーライドされます。 オブジェクトのクラスへのパスを取得または設定します。
パブリック プロパティ Container  Component を格納している IContainer を取得します。 ( Component から継承されます。)
パブリック プロパティ Item  [] 表記によってプロパティ値へのアクセスを取得します。このプロパティは、ManagementBaseObject クラスのインデクサです。型によって定義される既定のインデックス付きプロパティを使用できますが、独自のプロパティを明示的に定義することはできません。ただし、expando 属性をクラスに指定すると、型が Object でインデックス型が String である既定のインデックス付きプロパティが自動的に提供されます。 ( ManagementBaseObject から継承されます。)
パブリック プロパティ Options オブジェクトの取得時に使用する追加情報を取得または設定します。
パブリック プロパティ Path オブジェクトの WMI パスを取得または設定します。
パブリック プロパティ Properties  管理オブジェクトのプロパティを記述している PropertyData オブジェクトのコレクションを取得します。 ( ManagementBaseObject から継承されます。)
パブリック プロパティ Qualifiers  管理オブジェクトで定義される QualifierData オブジェクトのコレクションを取得します。コレクションの各要素は、修飾子の名前、値、フレーバーなどの情報を保持します。 ( ManagementBaseObject から継承されます。)
パブリック プロパティ Scope オブジェクトが存在するスコープを取得または設定します。
パブリック プロパティ Site  Component の ISite を取得または設定します。 ( Component から継承されます。)
パブリック プロパティ SystemProperties  管理オブジェクトの WMI (Windows Management Instrumentation) システム プロパティのコレクションを取得します (たとえば、クラス名、サーバー、および名前空間)。WMI システム プロパティ名は、"__" で始まります。 ( ManagementBaseObject から継承されます。)
プロテクト プロパティプロテクト プロパティ
参照参照

関連項目

ManagementObject クラス
System.Management 名前空間

ManagementObject メソッド


パブリック メソッドパブリック メソッド

( プロテクト メソッド も参照)
  名前 説明
パブリック メソッド Clone オーバーライドされます。 オブジェクトのコピーを作成します。
パブリック メソッド CompareTo  指定したオプションに基づいて、このオブジェクトを別のオブジェクトと比較します。 ( ManagementBaseObject から継承されます。)
パブリック メソッド CopyTo オーバーロードされます。 オブジェクトを別の場所にコピーします。
パブリック メソッド CreateObjRef  リモート オブジェクトとの通信に使用するプロキシの生成に必要な情報をすべて格納しているオブジェクトを作成します。 ( MarshalByRefObject から継承されます。)
パブリック メソッド Delete オーバーロードされます。 オブジェクトを削除します。
パブリック メソッド Dispose  オーバーロードされます。 Component によって使用されているリソースを解放します。 ( Component から継承されます。)
パブリック メソッド Equals  オーバーロードされます。 ( ManagementBaseObject から継承されます。)
パブリック メソッド Get オーバーロードされます。 管理オブジェクトにバインドします。
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( ManagementBaseObject から継承されます。)
パブリック メソッド GetLifetimeService  対象のインスタンスの有効期間ポリシーを制御する、現在の有効期間サービス オブジェクトを取得します。 ( MarshalByRefObject から継承されます。)
パブリック メソッド GetMethodParameters メソッドの入力パラメータのリストを表す ManagementBaseObject を返します。
パブリック メソッド GetPropertyQualifierValue  指定したプロパティ修飾子の値を返します。 ( ManagementBaseObject から継承されます。)
パブリック メソッド GetPropertyValue  プロパティの値に対する等価なアクセサを取得します。 ( ManagementBaseObject から継承されます。)
パブリック メソッド GetQualifierValue  指定した修飾子の値を取得します。 ( ManagementBaseObject から継承されます。)
パブリック メソッド GetRelated オーバーロードされます。 オブジェクトに関連しているオブジェクト (関連子) のコレクションを取得します。
パブリック メソッド GetRelationships オーバーロードされます。 オブジェクトへの関連付けのコレクションを取得します。
パブリック メソッド GetText  指定した書式でのオブジェクトのテキスト表現を返します。 ( ManagementBaseObject から継承されます。)
パブリック メソッド GetType  現在のインスタンスの Type を取得します。 ( Object から継承されます。)
パブリック メソッド InitializeLifetimeService  対象のインスタンスの有効期間ポリシーを制御する、有効期間サービス オブジェクトを取得します。 ( MarshalByRefObject から継承されます。)
パブリック メソッド InvokeMethod オーバーロードされます。 オブジェクトのメソッドを呼び出します。
パブリック メソッド op_Explicit  ManagementObject によって表される内部 WMI オブジェクトを提供します。 ( ManagementBaseObject から継承されます。)
パブリック メソッド Put オーバーロードされます。 オブジェクトへの変更をコミットします。
パブリック メソッド ReferenceEquals  指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。)
パブリック メソッド SetPropertyQualifierValue  指定したプロパティ修飾子の値を設定します。 ( ManagementBaseObject から継承されます。)
パブリック メソッド SetPropertyValue  名前付きプロパティの値を設定します。 ( ManagementBaseObject から継承されます。)
パブリック メソッド SetQualifierValue  名前付き修飾子の値を設定します。 ( ManagementBaseObject から継承されます。)
パブリック メソッド ToString オーバーライドされます。 オブジェクトの完全パスを返します。これは、既定のオブジェクト実装のオーバーライドです。
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

ManagementObject クラス
System.Management 名前空間

ManagementObject メンバ

WMI インスタンスを表します。

ManagementObject データ型で公開されるメンバを以下の表に示します。


パブリック コンストラクタパブリック コンストラクタ
プロテクト コンストラクタプロテクト コンストラクタ
パブリック プロパティパブリック プロパティ
( プロテクト プロパティ も参照)
  名前 説明
パブリック プロパティ ClassPath オーバーライドされます。 オブジェクトのクラスへのパスを取得または設定します。
パブリック プロパティ Container  Component を格納している IContainer を取得します。(Component から継承されます。)
パブリック プロパティ Item  [] 表記によってプロパティ値へのアクセスを取得します。このプロパティは、ManagementBaseObject クラスのインデクサです。型によって定義される既定のインデックス付きプロパティを使用できますが、独自のプロパティを明示的に定義することはできません。ただし、expando 属性をクラスに指定すると、型が Object でインデックス型が String である既定のインデックス付きプロパティが自動的に提供されます。(ManagementBaseObject から継承されます。)
パブリック プロパティ Options オブジェクトの取得時に使用する追加情報を取得または設定します。
パブリック プロパティ Path オブジェクトの WMI パスを取得または設定します。
パブリック プロパティ Properties  管理オブジェクトのプロパティを記述している PropertyData オブジェクトのコレクションを取得します。 (ManagementBaseObject から継承されます。)
パブリック プロパティ Qualifiers  管理オブジェクトで定義される QualifierData オブジェクトのコレクションを取得します。コレクションの各要素は、修飾子の名前、値、フレーバーなどの情報を保持します。 (ManagementBaseObject から継承されます。)
パブリック プロパティ Scope オブジェクトが存在するスコープを取得または設定します。
パブリック プロパティ Site  Component の ISite を取得または設定します。(Component から継承されます。)
パブリック プロパティ SystemProperties  管理オブジェクトの WMI (Windows Management Instrumentation) システム プロパティのコレクションを取得します (たとえば、クラス名、サーバー、および名前空間)。WMI システム プロパティ名は、"__" で始まります。 (ManagementBaseObject から継承されます。)
プロテクト プロパティプロテクト プロパティ
パブリック メソッドパブリック メソッド
( プロテクト メソッド も参照)
  名前 説明
パブリック メソッド Clone オーバーライドされます。 オブジェクトのコピーを作成します。
パブリック メソッド CompareTo  指定したオプションに基づいて、このオブジェクトを別のオブジェクトと比較します。 (ManagementBaseObject から継承されます。)
パブリック メソッド CopyTo オーバーロードされます。 オブジェクトを別の場所にコピーします。
パブリック メソッド CreateObjRef  リモート オブジェクトとの通信に使用するプロキシの生成に必要な情報をすべて格納しているオブジェクトを作成します。 (MarshalByRefObject から継承されます。)
パブリック メソッド Delete オーバーロードされます。 オブジェクトを削除します。
パブリック メソッド Dispose  オーバーロードされます。 Component によって使用されているリソースを解放します。 (Component から継承されます。)
パブリック メソッド Equals  オーバーロードされます。 ( ManagementBaseObject から継承されます。)
パブリック メソッド Get オーバーロードされます。 管理オブジェクトにバインドします。
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (ManagementBaseObject から継承されます。)
パブリック メソッド GetLifetimeService  対象のインスタンスの有効期間ポリシーを制御する、現在の有効期間サービス オブジェクトを取得します。 (MarshalByRefObject から継承されます。)
パブリック メソッド GetMethodParameters メソッドの入力パラメータのリストを表す ManagementBaseObject を返します。
パブリック メソッド GetPropertyQualifierValue  指定したプロパティ修飾子の値を返します。 (ManagementBaseObject から継承されます。)
パブリック メソッド GetPropertyValue  プロパティの値に対する等価なアクセサを取得します。 (ManagementBaseObject から継承されます。)
パブリック メソッド GetQualifierValue  指定した修飾子の値を取得します。 (ManagementBaseObject から継承されます。)
パブリック メソッド GetRelated オーバーロードされます。 オブジェクトに関連しているオブジェクト (関連子) のコレクションを取得します。
パブリック メソッド GetRelationships オーバーロードされます。 オブジェクトへの関連付けのコレクションを取得します。
パブリック メソッド GetText  指定した書式でのオブジェクトのテキスト表現を返します。 (ManagementBaseObject から継承されます。)
パブリック メソッド GetType  現在のインスタンスの Type を取得します。 (Object から継承されます。)
パブリック メソッド InitializeLifetimeService  対象のインスタンスの有効期間ポリシーを制御する、有効期間サービス オブジェクトを取得します。 (MarshalByRefObject から継承されます。)
パブリック メソッド InvokeMethod オーバーロードされます。 オブジェクトのメソッドを呼び出します。
パブリック メソッド op_Explicit  ManagementObject によって表される内部 WMI オブジェクトを提供します。 (ManagementBaseObject から継承されます。)
パブリック メソッド Put オーバーロードされます。 オブジェクトへの変更をコミットします。
パブリック メソッド ReferenceEquals  指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。)
パブリック メソッド SetPropertyQualifierValue  指定したプロパティ修飾子の値を設定します。 (ManagementBaseObject から継承されます。)
パブリック メソッド SetPropertyValue  名前付きプロパティの値を設定します。 (ManagementBaseObject から継承されます。)
パブリック メソッド SetQualifierValue  名前付き修飾子の値を設定します。 (ManagementBaseObject から継承されます。)
パブリック メソッド ToString オーバーライドされます。 オブジェクトの完全パスを返します。これは、既定のオブジェクト実装のオーバーライドです。
プロテクト メソッドプロテクト メソッド
パブリック イベントパブリック イベント
参照参照

関連項目

ManagementObject クラス
System.Management 名前空間



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「ManagementObject」の関連用語

ManagementObjectのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



ManagementObjectのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS