Condividi tramite


Metodo InvokeMgmtMethod (ManagementObject, String, Object[])

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

Spazio dei nomi:  Microsoft.SqlServer.Management.Smo.Wmi
Assembly:  Microsoft.SqlServer.SqlWmiManagement (in Microsoft.SqlServer.SqlWmiManagement.dll)

Sintassi

'Dichiarazione
Protected Sub InvokeMgmtMethod ( _
    mo As ManagementObject, _
    methodName As String, _
    parameters As Object() _
)
'Utilizzo
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[]
)

Parametri