InstallCompletedEventArgs Constructor
Creates a InstallCompletedEventArgs object.
Namespace: Microsoft.VisualStudio.ExtensionManager
Assembly: Microsoft.VisualStudio.ExtensionManager (in Microsoft.VisualStudio.ExtensionManager.dll)
Syntax
'Déclaration
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
- extension
Type: Microsoft.VisualStudio.ExtensionManager.IInstalledExtension
The installed extension.
- state
Type: Microsoft.VisualStudio.ExtensionManager.InstallState
Installed or Uninstalled.
- 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.
- userState
Type: System.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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.