public bool DeleteKey(string key) { int status = SafeNativeMethods.RegDeleteKey(this, key); if (status == SafeNativeMethods.ERROR_SUCCESS) { return(true); } else { return(false); } }
public bool DeleteKey(string key) { return(SafeNativeMethods.RegDeleteKey(this, key) == 0); }