RegisterForApplicationRestart Method

Vista Bridge Library

[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

ExceptionCondition
System..::.ArgumentExceptionRegistration failed due to an invalid parameter.
System..::.InvalidOperationExceptionThe attempt to register failed.

See Also