次の方法で共有


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

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

Overloads Public Sub InvokeMethod( _
   ByVal watcher As ManagementOperationObserver, _   ByVal methodName As String, _   ByVal inParameters As ManagementBaseObject, _   ByVal options As InvokeMethodOptions _)
[C#]
public void InvokeMethod(ManagementOperationObserverwatcher,stringmethodName,ManagementBaseObjectinParameters,InvokeMethodOptionsoptions);
[C++]
public: void InvokeMethod(ManagementOperationObserver* watcher,String* methodName,ManagementBaseObject* inParameters,InvokeMethodOptions* options);
[JScript]
public function InvokeMethod(
   watcher : ManagementOperationObserver,methodName : String,inParameters : ManagementBaseObject,options : InvokeMethodOptions);

パラメータ

  • watcher
    非同期実行の進行状況と結果を処理するために使用する ManagementOperationObserver
  • methodName
    実行するメソッドの名前。
  • inParameters
    メソッドの入力パラメータを格納している ManagementBaseObject
  • options
    メソッドの実行のために使用する追加オプションを格納している InvokeMethodOptions

解説

メソッドは、指定したメソッド実行を呼び出してから、制御を戻します。進行状況と結果は、 ManagementOperationObserver のイベントによってレポートされます。

必要条件

プラットフォーム: 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 オーバーロードの一覧