Método WmiSmoObject.InvokeMgmtMethod (ManagementObject, String, array<Object )
Invokes the management method for the referenced object with the specified management object, method name, and parameters.
Namespace: Microsoft.SqlServer.Management.Smo.Wmi
Assembly: Microsoft.SqlServer.SqlWmiManagement (em Microsoft.SqlServer.SqlWmiManagement.dll)
Sintaxe
'Declaração
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
- mo
Tipo: System.Management.ManagementObject
A ManagementObject value that specifies the management object for the referenced object.
- 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.
Exemplos
Gerenciando serviços e configurações de rede através do provedor do WMI
Consulte também
Referência
Sobrecarregado InvokeMgmtMethod
Namespace Microsoft.SqlServer.Management.Smo.Wmi