Share via


InstallCompletedEventArgs Constructor

Creates a InstallCompletedEventArgs object.

Namespace:  Microsoft.VisualStudio.ExtensionManager
Assembly:  Microsoft.VisualStudio.ExtensionManager (in Microsoft.VisualStudio.ExtensionManager.dll)

Syntax

'Declaration
Public Sub New ( _
    extension As IInstalledExtension, _
    state As InstallState, _
    restartRequired As Boolean, _
    exception As Exception, _
    canceled As Boolean, _
    userState As Object _
)
public InstallCompletedEventArgs(
    IInstalledExtension extension,
    InstallState state,
    bool restartRequired,
    Exception exception,
    bool canceled,
    Object userState
)
public:
InstallCompletedEventArgs(
    IInstalledExtension^ extension, 
    InstallState state, 
    bool restartRequired, 
    Exception^ exception, 
    bool canceled, 
    Object^ userState
)
new : 
        extension:IInstalledExtension * 
        state:InstallState * 
        restartRequired:bool * 
        exception:Exception * 
        canceled:bool * 
        userState:Object -> InstallCompletedEventArgs
public function InstallCompletedEventArgs(
    extension : IInstalledExtension, 
    state : InstallState, 
    restartRequired : boolean, 
    exception : Exception, 
    canceled : boolean, 
    userState : Object
)

Parameters

  • restartRequired
    Type: Boolean

    true if a restart is required; otherwise, false.

  • exception
    Type: Exception

    The exception, if any, that canceled the installation; otherwise, nulla null reference (Nothing in Visual Basic).

  • canceled
    Type: Boolean

    true if the installation was canceled; otherwise, false.

  • userState
    Type: Object

    The userState information that was passed to InstallAsync when the installation was started.

Remarks

Although this API supports the Extension Manager infrastructure, we recommend that you do not use it because it is subject to change.

.NET Framework Security

See Also

Reference

InstallCompletedEventArgs Class

Microsoft.VisualStudio.ExtensionManager Namespace