Compartir a través de


WmiSmoObject.InvokeMgmtMethod Método (ManagementObject, String, array<Object )

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

Espacio de nombres:  Microsoft.SqlServer.Management.Smo.Wmi
Ensamblado:  Microsoft.SqlServer.SqlWmiManagement (en Microsoft.SqlServer.SqlWmiManagement.dll)

Sintaxis

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

Parámetros

  • methodName
    Tipo: System.String
    A String value that specifies the name of the management method.
  • parameters
    Tipo: array<System.Object[]
    An Object array value that specifies the parameters for the management method.

Ejemplos

Administrar servicios y configuración de red utilizando el proveedor WMI

Vea también

Referencia

WmiSmoObject Clase

Sobrecarga de InvokeMgmtMethod

Espacio de nombres Microsoft.SqlServer.Management.Smo.Wmi

Otros recursos

WMI and SQL Server

Conectar al Motor de base de datos de SQL Server