Dela via


InitializerInstaller.Rollback Method

Restores the pre-installation state of the computer.

Namespace: Microsoft.ConfigurationManagement.ManagementProvider
Assembly: Microsoft.ConfigurationManagement.ManagementProvider (in microsoft.configurationmanagement.managementprovider.dll)

Usage

'Usage
Dim instance As InitializerInstaller
Dim savedState As IDictionary

instance.Rollback(savedState)

Syntax

'Declaration
Public Overrides Sub Rollback ( _
    savedState As IDictionary _
)
public override void Rollback (
    IDictionary savedState
)
public:
virtual void Rollback (
    IDictionary^ savedState
) override
public void Rollback (
    IDictionary savedState
)
public override function Rollback (
    savedState : IDictionary
)

Parameters

  • savedState
    [in] System.Collections.IDictionary object that represents the saved state.

Exceptions

Exception type Condition
ArgumentException

The savedState parameter cannot be null.

-or-

The System.Collections.IDictionary object in the savedState parameter might be corrupted.

InstallException

An exception occurred during the System.Configuration.Install.Installer.Rollback phase of the installation. This exception is ignored and the rollback continues. However, the computer might not be fully reverted to its initial state after the rollback completes.

Remarks

Your application must override this method in a derived class.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2003,Windows Vista

See Also

Reference

InitializerInstaller Class
InitializerInstaller Members
Microsoft.ConfigurationManagement.ManagementProvider Namespace