共用方式為


IVsExtensionRepository.DownloadAsync 方法

Begins an asynchronous download operation.

命名空間:  Microsoft.VisualStudio.ExtensionManager
組件:  Microsoft.VisualStudio.ExtensionManager (在 Microsoft.VisualStudio.ExtensionManager.dll 中)

語法

'宣告
Function DownloadAsync ( _
    extensionDetails As IRepositoryEntry _
) As Guid
Guid DownloadAsync(
    IRepositoryEntry extensionDetails
)
Guid DownloadAsync(
    IRepositoryEntry^ extensionDetails
)
abstract DownloadAsync : 
        extensionDetails:IRepositoryEntry -> Guid
function DownloadAsync(
    extensionDetails : IRepositoryEntry
) : Guid

參數

傳回值

類型:Guid
A GUID that identifies the download operation.

備註

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

On completion, the IInstallableExtension that represents the VSIX package is returned as the Payload property of the DownloadCompletedEventArgs of the DownloadCompleted event.

The GUID that is returned by this method is used by the DownloadAsyncCancel method.

.NET Framework 安全性

請參閱

參考

IVsExtensionRepository 介面

Microsoft.VisualStudio.ExtensionManager 命名空間