WmiSmoObject.InvokeMgmtMethod WmiSmoObject.InvokeMgmtMethod WmiSmoObject.InvokeMgmtMethod Method

Definition

Invokes the management method for the referenced object.

Overloads

InvokeMgmtMethod(ManagementObject, String, Object[]) InvokeMgmtMethod(ManagementObject, String, Object[]) 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[]) InvokeMgmtMethod(ManagementObject, ManagementOperationObserver, String, Object[]) 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[]) InvokeMgmtMethod(ManagementObject, String, Object[]) 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);
Protected Sub InvokeMgmtMethod (mo As ManagementObject, methodName As String, parameters As Object())
Parameters
mo
ManagementObject ManagementObject ManagementObject

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

methodName
String String 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

InvokeMgmtMethod(ManagementObject, ManagementOperationObserver, String, Object[]) InvokeMgmtMethod(ManagementObject, ManagementOperationObserver, String, Object[]) 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);
Protected Sub InvokeMgmtMethod (mo As ManagementObject, observer As ManagementOperationObserver, methodName As String, parameters As Object())
Parameters
mo
ManagementObject ManagementObject ManagementObject

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

observer
ManagementOperationObserver ManagementOperationObserver ManagementOperationObserver

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

methodName
String String 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