Метод | Описание | |
---|---|---|
ApplicationRecoveryFinished ( bool success ) : void |
Called by an application's RecoveryCallback method to indicate that the recovery work is complete. This should be the last call made by the RecoveryCallback method because Windows Error Reporting will terminate the application after this method is invoked. |
|
ApplicationRecoveryInProgress ( ) : bool |
Called by an application's RecoveryCallback method to indicate that it is still performing recovery work.
|
|
RegisterForApplicationRecovery ( Microsoft.WindowsAPICodePack.ApplicationServices.RecoverySettings settings ) : void |
Registers an application for recovery by Application Restart and Recovery. The time interval is the period of time within which the recovery callback method calls the ApplicationRecoveryInProgress method to indicate that it is still performing recovery work. |
|
RegisterForApplicationRestart ( Microsoft.WindowsAPICodePack.ApplicationServices.RestartSettings settings ) : void |
Registers an application for automatic restart if the application is terminated by Windows Error Reporting. A registered application will not be restarted if it executed for less than 60 seconds before terminating. |
|
UnregisterApplicationRecovery ( ) : void |
Removes an application's recovery registration.
|
|
UnregisterApplicationRestart ( ) : void |
Removes an application's restart registration.
|
public static ApplicationRecoveryFinished ( bool success ) : void | ||
success | bool | true to indicate the the program was able to complete its recovery /// work before terminating; otherwise false. |
Результат | void |
public static ApplicationRecoveryInProgress ( ) : bool | ||
Результат | bool |
public static RegisterForApplicationRecovery ( Microsoft.WindowsAPICodePack.ApplicationServices.RecoverySettings settings ) : void | ||
settings | Microsoft.WindowsAPICodePack.ApplicationServices.RecoverySettings | An object that specifies /// the callback method, an optional parameter to pass to the callback /// method and a time interval. |
Результат | void |
public static RegisterForApplicationRestart ( Microsoft.WindowsAPICodePack.ApplicationServices.RestartSettings settings ) : void | ||
settings | Microsoft.WindowsAPICodePack.ApplicationServices.RestartSettings | An object that specifies /// the command line arguments used to restart the /// application, and /// the conditions under which the application should not be /// restarted. |
Результат | void |
public static UnregisterApplicationRecovery ( ) : void | ||
Результат | void |
public static UnregisterApplicationRestart ( ) : void | ||
Результат | void |