ManagementObject.InvokeMethod Method (ManagementOperationObserver, String, Object[])

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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,
	object[] args
)

Parameters

watcher
Type: System.Management.ManagementOperationObserver

The object to receive the results of the operation.

methodName
Type: System.String

The name of the method to execute.

args
Type: System.Object[]

An array containing parameter values.

If the method is static, the execution should still succeed.

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
Show: