Share via


WmiSmoObject.InvokeMgmtMethod Method

Definition

Invokes the management method for the referenced object.

Overloads

InvokeMgmtMethod(ManagementObject, String, Object[])

Invokes the management method for the referenced object with the specified management object, method name, and parameters.

InvokeMgmtMethod(ManagementObject, ManagementOperationObserver, String, Object[])

Invokes the management method for the referenced object with the specified management object, observer, method name, and parameters.

InvokeMgmtMethod(ManagementObject, String, Object[])

Invokes the management method for the referenced object with the specified management object, method name, and parameters.

protected:
 void InvokeMgmtMethod(System::Management::ManagementObject ^ mo, System::String ^ methodName, cli::array <System::Object ^> ^ parameters);
protected void InvokeMgmtMethod (System.Management.ManagementObject mo, string methodName, object[] parameters);
member this.InvokeMgmtMethod : System.Management.ManagementObject * string * obj[] -> unit
Protected Sub InvokeMgmtMethod (mo As ManagementObject, methodName As String, parameters As Object())

Parameters

mo
ManagementObject

A ManagementObject value that specifies the management object for the referenced object.

methodName
String

A String value that specifies the name of the management method.

parameters
Object[]

An Object array value that specifies the parameters for the management method.

Examples

Managing Services and Network Settings by Using WMI Provider

Applies to

InvokeMgmtMethod(ManagementObject, ManagementOperationObserver, String, Object[])

Invokes the management method for the referenced object with the specified management object, observer, method name, and parameters.

protected:
 void InvokeMgmtMethod(System::Management::ManagementObject ^ mo, System::Management::ManagementOperationObserver ^ observer, System::String ^ methodName, cli::array <System::Object ^> ^ parameters);
protected void InvokeMgmtMethod (System.Management.ManagementObject mo, System.Management.ManagementOperationObserver observer, string methodName, object[] parameters);
member this.InvokeMgmtMethod : System.Management.ManagementObject * System.Management.ManagementOperationObserver * string * obj[] -> unit
Protected Sub InvokeMgmtMethod (mo As ManagementObject, observer As ManagementOperationObserver, methodName As String, parameters As Object())

Parameters

mo
ManagementObject

A ManagementObject system object value that specifies the management object for the referenced object.

observer
ManagementOperationObserver

A ManagementOperationObserver system object value that specifies the observer of the management method for the referenced object.

methodName
String

A String value that specifies the name of the management method.

parameters
Object[]

An Object system object array value that specifies the parameters for the management method.

Examples

Managing Services and Network Settings by Using WMI Provider

See also

Applies to