packages/Windows API Code Pack 1.1/source/WindowsAPICodePack/Core/AppRestartRecovery/ApplicationRestartRecoveryManager.cs
/// <summary>
/// Removes an application's recovery registration.
/// </summary>
/// <exception cref="Microsoft.WindowsAPICodePack.ApplicationServices.ApplicationRecoveryException">
/// The attempt to unregister for recovery failed.</exception>
Removes an application's recovery registration.
Removes an application ' s recovery registration .
public static void UnregisterApplicationRecovery()
        {            
            CoreHelpers.ThrowIfNotVista();
            HResult hr = AppRestartRecoveryNativeMethods.UnregisterApplicationRecoveryCallback();
            if (!CoreErrorHelper.Succeeded(hr))
            {
                throw new ApplicationRecoveryException(LocalizedMessages.ApplicationRecoveryFailedToUnregister);
            }
        }
public static void UnregisterApplicationRecovery ( ) { CoreHelpers . ThrowIfNotVista ( ) ; HResult hr = AppRestartRecoveryNativeMethods . UnregisterApplicationRecoveryCallback ( ) ; if ( ! CoreErrorHelper . Succeeded ( hr ) ) { throw new ApplicationRecoveryException ( LocalizedMessages . ApplicationRecoveryFailedToUnregister ) ; } }
Removes an application's recovery registration.
Removes an application ' s recovery registration .
The attempt to unregister for recovery failed.
The attempt to unregister for recovery failed .