public int GetMethodOrigin_(string wszMethodName, out string pstrClassName)
        {
            if (this.pWbemClassObject == IntPtr.Zero)
            {
                throw new ObjectDisposedException(name);
            }
            int num = WmiNetUtilsHelper.GetMethodOrigin_f(0x1a, this.pWbemClassObject, wszMethodName, out pstrClassName);

            GC.KeepAlive(this);
            return(num);
        }
コード例 #2
0
 public int GetMethodOrigin_(string wszMethodName, out string pstrClassName)
 {
     if (this.pWbemClassObject != IntPtr.Zero)
     {
         int num = WmiNetUtilsHelper.GetMethodOrigin_f(26, this.pWbemClassObject, wszMethodName, out pstrClassName);
         GC.KeepAlive(this);
         return(num);
     }
     else
     {
         throw new ObjectDisposedException(IWbemClassObjectFreeThreaded.name);
     }
 }