ManagementObject.InvokeMethod Method (ManagementOperationObserver, String, ManagementBaseObject, InvokeMethodOptions)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Invokes a method on the object, asynchronously.

Namespace:   System.Management
Assembly:  System.Management (in System.Management.dll)

public void InvokeMethod(
	ManagementOperationObserver watcher,
	string methodName,
	ManagementBaseObject inParameters,
	InvokeMethodOptions options


Type: System.Management.ManagementOperationObserver

A ManagementOperationObserver used to handle the asynchronous execution's progress and results.

Type: System.String

The name of the method to be executed.

Type: System.Management.ManagementBaseObject

A ManagementBaseObject containing the input parameters for the method.

Type: System.Management.InvokeMethodOptions

An InvokeMethodOptions containing additional options used to execute the method.

The method invokes the specified method execution and then returns. Progress and results are reported through events on the ManagementOperationObserver.

Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.

.NET Framework
Available since 1.1
Return to top