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
参数
extensionDetails
类型:Microsoft.VisualStudio.ExtensionManager.IRepositoryEntryThe IRepositoryEntry that corresponds to the extension to be downloaded.
返回值
类型: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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。