Compartilhar via


InstallCompletedEventArgs Constructor

Creates a InstallCompletedEventArgs object.

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

Syntax

'Declaração
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: System.Boolean
    true if a restart is required; otherwise, false.
  • exception
    Type: System.Exception
    The exception, if any, that canceled the installation; otherwise, nulla null reference (Nothing in Visual Basic).
  • canceled
    Type: System.Boolean
    true if the installation was canceled; otherwise, false.

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