次の方法で共有


ManagementObject.InvokeMethod メソッド (ManagementOperationObserver, String, Object )

オブジェクトのメソッドを非同期的に呼び出します。

Overloads Public Sub InvokeMethod( _
   ByVal watcher As ManagementOperationObserver, _   ByVal methodName As String, _   ByVal args() As Object _)
[C#]
public void InvokeMethod(ManagementOperationObserverwatcher,stringmethodName,object[] args);
[C++]
public: void InvokeMethod(ManagementOperationObserver* watcher,String* methodName,Object* args __gc[]);
[JScript]
public function InvokeMethod(
   watcher : ManagementOperationObserver,methodName : String,args : Object[]);

パラメータ

  • watcher
    操作の結果を受け取るオブジェクト。
  • methodName
    実行するメソッドの名前。
  • args
    パラメータ値を格納している配列。

解説

メソッドが静的メソッドの場合、その実行は成功します。

必要条件

プラットフォーム: 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 名前空間 | ManagementObject.InvokeMethod オーバーロードの一覧