RegisterForApplicationRestart Method
From Vista Bridge Library
| Vista Bridge Library for Managed code development |
| ArrManager..::.RegisterForApplicationRestart Method |
| ArrManager Class See Also Send Feedback |
[This is preliminary documentation and is subject to change.]
Registers an application for automatic restart if
the application
is terminated by Windows Error Reporting.
Namespace:
Microsoft.SDK.Samples.VistaBridge.Library.AppRecoveryRestart
Assembly:
VistaBridgeLibrary (in VistaBridgeLibrary.dll) Version: 1.4.0.0 (1.4.0.0)
Syntax
| C# |
|---|
public static void RegisterForApplicationRestart( RestartSettings settings ) |
| Visual Basic (Declaration) |
|---|
Public Shared Sub RegisterForApplicationRestart ( _ settings As RestartSettings _ ) |
| Visual C++ |
|---|
public: static void RegisterForApplicationRestart( RestartSettings^ settings ) |
Parameters
- settings
- Type: Microsoft.SDK.Samples.VistaBridge.Library.AppRecoveryRestart..::.RestartSettings
An object that specifies the commandline arguments used to restart the application, and the conditions wheen the application should not be restarted.
Remarks
A registered application will not be restarted if it executed for less than 60 seconds before terminating.
Exceptions
| Exception | Condition |
|---|---|
| Registration failed due to an invalid parameter. | |
| The attempt to register failed. |