public int DeleteMethod_(string wszName)
        {
            if (this.pWbemClassObject == IntPtr.Zero)
            {
                throw new ObjectDisposedException(name);
            }
            int num = WmiNetUtilsHelper.DeleteMethod_f(0x15, this.pWbemClassObject, wszName);

            GC.KeepAlive(this);
            return(num);
        }
コード例 #2
0
 public int DeleteMethod_(string wszName)
 {
     if (this.pWbemClassObject != IntPtr.Zero)
     {
         int num = WmiNetUtilsHelper.DeleteMethod_f(21, this.pWbemClassObject, wszName);
         GC.KeepAlive(this);
         return(num);
     }
     else
     {
         throw new ObjectDisposedException(IWbemClassObjectFreeThreaded.name);
     }
 }