Share via


InvokeMgmtMethod 方法 (ManagementObject, String, Object[])

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

命名空间:  Microsoft.SqlServer.Management.Smo.Wmi
程序集:  Microsoft.SqlServer.SqlWmiManagement(在 Microsoft.SqlServer.SqlWmiManagement.dll 中)

语法

声明
Protected Sub InvokeMgmtMethod ( _
    mo As ManagementObject, _
    methodName As String, _
    parameters As Object() _
)
用法
Dim mo As ManagementObject
Dim methodName As String
Dim parameters As Object()

Me.InvokeMgmtMethod(mo, methodName, _
    parameters)
protected void InvokeMgmtMethod(
    ManagementObject mo,
    string methodName,
    Object[] parameters
)
protected:
void InvokeMgmtMethod(
    ManagementObject^ mo, 
    String^ methodName, 
    array<Object^>^ parameters
)
member InvokeMgmtMethod : 
        mo:ManagementObject * 
        methodName:string * 
        parameters:Object[] -> unit 
protected function InvokeMgmtMethod(
    mo : ManagementObject, 
    methodName : String, 
    parameters : Object[]
)

参数

  • parameters
    类型:array<System. . :: . .Object> [] () [] []
    An Object array value that specifies the parameters for the management method.