RegisterForApplicationRecovery Method

Vista Bridge Library

[This is preliminary documentation and is subject to change.]

Registers an application for recovery.

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 RegisterForApplicationRecovery(
	RecoverySettings settings
)
Visual Basic (Declaration)
Public Shared Sub RegisterForApplicationRecovery ( _
	settings As RecoverySettings _
)
Visual C++
public:
static void RegisterForApplicationRecovery(
	RecoverySettings^ settings
)

Parameters

settings
Type: Microsoft.SDK.Samples.VistaBridge.Library.AppRecoveryRestart..::.RecoverySettings
An object that specifies the callback method, an optional parameter to pass to the callback method and a time interval (see remarks).

Remarks

The time interval indicates the time within which the recovery callback method calls the ApplicationRecoveryInProgress()()() method to indicate that it is still performing recovery work.

Exceptions

ExceptionCondition
System..::.ArgumentException The registration failed due to an invalid parameter.
System.ComponentModel..::.Win32Exception The registration failed.

See Also