Dela via


InitializerInstaller.Install Method

Performs the installation.

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

Usage

'Usage
Dim instance As InitializerInstaller
Dim stateSaver As IDictionary

instance.Install(stateSaver)

Syntax

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

Parameters

  • stateSaver
    [in] System.Collections.IDictionary object that represents the state saver to use in the installation.

Exceptions

Exception type Condition
ArgumentException

The stateSaver parameter cannot be null.

Exception

An exception occurred in the System.Configuration.Install.Installer.BeforeInstall event handler of one of the installers in the collection.

-or-

An exception occurred in the System.Configuration.Install.Installer.AfterInstall event handler of one of the installers in the collection.

InvalidOperationException

There were no connection managers to install.

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