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
extension
Type: Microsoft.VisualStudio.ExtensionManager.IInstalledExtensionThe installed extension.
state
Type: Microsoft.VisualStudio.ExtensionManager.InstallStateInstalled or Uninstalled.
restartRequired
Type: Booleantrue if a restart is required; otherwise, false.
exception
Type: ExceptionThe exception, if any, that canceled the installation; otherwise, nulla null reference (Nothing in Visual Basic).
canceled
Type: Booleantrue if the installation was canceled; otherwise, false.
userState
Type: ObjectThe 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.