다음을 통해 공유


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.dll의 Microsoft.SqlServer.SqlWmiManagement

구문

‘선언
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.