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

 

Invokes a method on the object, asynchronously.

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

member InvokeMethod : 
        watcher:ManagementOperationObserver *
        methodName:string *
        args:Object[] -> unit

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: