Example #1
0
 protected object InvokeWmi(string method, params object[] arguments)
 {
     try
     {
         using (ManagementObject wmiObject = ManagementAgent.GetManagementAgentWmiObject(this.ID))
         {
             return(wmiObject.InvokeMethod(method, arguments));
         }
     }
     catch (COMException ex)
     {
         throw new MiiserverException(SyncServer.TranslateCOMException(ex), ex);
     }
 }