public int GetQualifierSet_(out IWbemQualifierSetFreeThreaded ppQualSet) { IntPtr ptr; if (this.pWbemClassObject == IntPtr.Zero) { throw new ObjectDisposedException(name); } int num = WmiNetUtilsHelper.GetQualifierSet_f(3, this.pWbemClassObject, out ptr); if (num < 0) { ppQualSet = null; } else { ppQualSet = new IWbemQualifierSetFreeThreaded(ptr); } GC.KeepAlive(this); return(num); }
public int GetQualifierSet_(out IWbemQualifierSetFreeThreaded ppQualSet) { IntPtr intPtr; if (this.pWbemClassObject != IntPtr.Zero) { int getQualifierSetF = WmiNetUtilsHelper.GetQualifierSet_f(3, this.pWbemClassObject, out intPtr); if (getQualifierSetF >= 0) { ppQualSet = new IWbemQualifierSetFreeThreaded(intPtr); } else { ppQualSet = null; } GC.KeepAlive(this); return(getQualifierSetF); } else { throw new ObjectDisposedException(IWbemClassObjectFreeThreaded.name); } }