WmiSmoObject.InvokeMgmtMethod Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
A ManagementObject value that specifies the management object for the referenced object.
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
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.
- 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