Partager via


IVsExtensionManager.InstallAsync Method (IInstallableExtension, Boolean, Object)

Asynchronously installs an extension to the ExtensionsRoot directory. Installations that are invoked by using this method may be canceled by passing the userState object to the InstallAsyncCancel method.

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

Syntax

'Déclaration
Sub InstallAsync ( _
    extension As IInstallableExtension, _
    perMachine As Boolean, _
    userState As Object _
)
void InstallAsync(
    IInstallableExtension extension,
    bool perMachine,
    Object userState
)
void InstallAsync(
    IInstallableExtension^ extension, 
    bool perMachine, 
    Object^ userState
)
abstract InstallAsync : 
        extension:IInstallableExtension * 
        perMachine:bool * 
        userState:Object -> unit 
function InstallAsync(
    extension : IInstallableExtension, 
    perMachine : boolean, 
    userState : Object
)

Parameters

  • perMachine
    Type: System.Boolean
    Specifies whether an extension should be installed on a per-computer basis or only for the current user.
  • userState
    Type: System.Object
    A task ID that may be used to track multiple invocations of this method in event handlers.

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

IVsExtensionManager Interface

InstallAsync Overload

Microsoft.VisualStudio.ExtensionManager Namespace